/*
* Soludigi - Soluciones Digitales Tecnológicas
* Estilos principales
* Versión: 2.0 - Limpio y organizado
*/

:root {
    --primary-color: #921B1F; /* Color rojo del logo */
    --secondary-color: #2A2A2A; /* Negro oscuro para la barra de navegación */
    --gradient-start: #343434; /* Gris oscuro para el degradado */
    --gradient-end: #555555; /* Gris medio para el degradado */
    --text-color: #333333;
    --light-color: #FFFFFF;
    --bg-light: #F8F9FA;
}

/* Estilos generales */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

section {
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-padding {
    padding: 80px 0;
}

.bg-light-gray {
    background-color: var(--bg-light);
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color) !important;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-brand img.logo {
    height: 40px;
    width: auto;
}

.navbar-dark .navbar-nav .nav-link {
    color: white !important;
    opacity: 0.9;
    font-weight: 500;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    opacity: 1;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 0; /* Eliminado el espacio para el navbar */
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Hero Carousel - arreglo para dispositivos iOS */
#heroCarousel {
    display: block !important; /* Forzar visualización en todos los dispositivos */
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-transform: translateZ(0); /* Optimización para iOS */
    -webkit-backface-visibility: hidden; /* Evita problemas de renderizado */
    -webkit-perspective: 1000; /* Ayuda con la aceleración por hardware */
}

.carousel-item {
    -webkit-transform: translate3d(0, 0, 0); /* Mejor rendimiento en iOS */
    -webkit-transition: -webkit-transform 0.5s ease-in-out;
    transition: transform 0.5s ease-in-out;
    backface-visibility: hidden; /* Previene parpadeos */
}

/* Modificar altura para dispositivos móviles */
@media (max-width: 767px) {
    #heroCarousel {
        margin-top: 56px; /* Margen superior en móviles para evitar que el navbar lo cubra */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%; /* Controles más grandes en móvil para mejor usabilidad */
    }
}

/* Hero slide - altura específica para móvil */
.hero-slide {
    min-height: 440px; /* Altura exacta para móvil según la imagen compartida */
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .hero-slide {
        min-height: 420px;
        padding: 5rem 2rem;
    }
}

.custom-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* Botones generales */
.btn-primary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 5px;
}

.btn-primary:hover {
    background-color: white;
    color: var(--gradient-start);
    border-color: white;
}

.btn-secondary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
    margin: 5px;
}

.btn-secondary:hover {
    background-color: #7a1519;
    color: white;
    border-color: #7a1519;
}

/* Transición y efecto hover para todos los botones */
.btn {
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
}

/* Botones del hero - ajustados para apariencia uniforme */
.hero-slide .btn {
    padding: 10px 25px;
    font-weight: 500;
    display: inline-block;
    margin: 5px;
    min-width: 150px; /* Ancho mínimo igual para ambos botones */
    font-size: 14px; /* Tamaño de fuente uniforme */
    line-height: 1.5;
    border-radius: 4px; /* Mismo radio de borde */
    box-sizing: border-box;
    height: 42px; /* Altura fija para ambos botones */
}

.btn-outline-light {
    background-color: white;
    border-color: white;
    color: #333;
    /* Ligeramente más pequeño para compensar la ilusión óptica */
    transform: scale(0.98);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #000;
}

.btn-danger {
    background-color: #a20000;
    border: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Tarjetas de servicios */
.service-card {
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    background-color: white;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.icon-vino {
    color: #7B1E1E;
}

/* Tarjetas de productos */
.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-logo {
    margin-bottom: 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-logo img {
    max-height: 80px;
    max-width: 150px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Sección About */
.section-title-left {
    text-align: left;
    margin-bottom: 30px;
    position: relative;
    font-weight: 600;
}

.section-title-left::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px 0 0;
}

.about-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    min-width: 40px;
    margin-right: 15px;
    color: #921B1F; /* Color rojo del logo */
    font-size: 24px;
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-content p {
    margin-bottom: 0;
    color: #555;
    line-height: 1.5;
}

.about-quote {
    margin-top: 30px;
    padding-left: 15px;
    border-left: 3px solid #921B1F; /* Color rojo del logo */
}

.about-quote blockquote {
    position: relative;
    padding-left: 30px;
    font-style: italic;
    margin-bottom: 0;
}

.quote-icon {
    position: absolute;
    left: 0;
    top: 0;
    color: #921B1F; /* Color rojo del logo */
    font-size: 20px;
    opacity: 0.8;
}

.about-img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilos específicos para iOS para evitar problemas de renderizado */
@supports (-webkit-touch-callout: none) {
    .about-feature {
        -webkit-transform: translateZ(0);
    }
    
    .about-img {
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
}

/* Sección de tecnologías */
.tech-icon {
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.tech-icon img {
    height: 60px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.tech-icon:hover img {
    transform: scale(1.1);
}

/* Estilos para el video en la sección "Sobre Nosotros" */
.video-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 0.375rem;
}

.video-responsive {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    /* Tamaños para desktop */
    min-height: 350px;
    max-height: 500px;
}

/* Tablet (iPad) */
@media (max-width: 1024px) {
    .video-responsive {
        min-height: 300px;
        max-height: 400px;
    }
}

/* Mobile (iPhone y móviles) */
@media (max-width: 768px) {
    .video-responsive {
        min-height: 200px;
        max-height: 280px;
        width: 100%;
    }
}

/* iPhone en orientación VERTICAL (portrait) - MÁS PEQUEÑO */
@media (max-width: 576px) and (orientation: portrait) {
    .video-responsive {
        min-height: 140px;
        max-height: 180px;
    }
}

/* iPhone en orientación HORIZONTAL (landscape) - mantener tamaño normal */
@media (max-width: 896px) and (orientation: landscape) {
    .video-responsive {
        min-height: 200px;
        max-height: 280px;
    }
}

/* Móviles muy pequeños en vertical */
@media (max-width: 390px) and (orientation: portrait) {
    .video-responsive {
        min-height: 120px;
        max-height: 160px;
    }
}

/* Específico para iPhone (detección más precisa) - SOLO en vertical */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 430px) 
  and (orientation: portrait)
  and (-webkit-min-device-pixel-ratio: 2) {
    .video-responsive {
        min-height: 130px;
        max-height: 170px;
        object-fit: cover;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Enlaces del footer */
footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

footer a:hover {
    color: white;
    opacity: 1;
    text-decoration: none;
}

/* Estilos específicos para redes sociales */
.social-links a {
    color: white;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.social-links a:hover {
    color: #4267B2; /* Color azul de Facebook al hacer hover */
    transform: translateY(-2px);
}

/* Estilos para el enlace de privacidad */
.footer-links a {
    color: white;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #f8f9fa;
    transform: translateY(-2px);
}

/* Estilos responsivos */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--secondary-color);
        padding: 15px;
        border-radius: 5px;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .service-card {
        margin-bottom: 30px;
    }
    
    .tech-icon img {
        height: 50px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}