/* Estilos específicos para home.html */

/* Botón cotización personalizada */
.cotiza-btn {
    display: inline-block;
    background-color: var(--amarillo-mostaza);
    color: var(--azul-profundo);
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: background 0.3s, color 0.3s;
    text-transform: uppercase;
}

.cotiza-btn:hover {
    background: var(--blanco);
    color: var(--azul-profundo);
}

/* Sección productos */
.productos-section {
    padding: 48px 0 32px 0;
    background: rgba(255,255,255,0.01);
    text-align: center;
}

.productos-section h2 {
    font-size: 2.4rem;
    margin-bottom: 32px;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.producto-card {
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 18px 12px 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.producto-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.producto-card img {
    width: 100%;
    max-width: 260px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fff;
}

.producto-card h3 {
    color: var(--amarillo-mostaza);
    font-size: 1.2rem;
    margin-top: 0;
}

/* Carrusel */
.carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 10px;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(42, 51, 113, 0.8), rgba(42, 51, 113, 0.4));
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-btn {
    background-color: var(--amarillo-mostaza);
    color: var(--azul-profundo);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.carousel-btn:hover {
    background-color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--amarillo-mostaza);
}

/* Sección de texto */
.text-section {
    padding: 32px 0;
    text-align: center;
}

.text-section h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--amarillo-mostaza);
    position: relative;
    display: inline-block;
}

.text-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--amarillo-mostaza);
}

.text-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--gris-suave);
}

/* Imagen Proceso */
.proceso-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 24px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Carrusel de características */
.features-carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 80px auto;
}

.features-carousel {
    position: relative;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}

.features-carousel .feature {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 0 64px;
    gap: 16px;
    text-align: center;
}

.features-carousel .feature.active {
    opacity: 1;
    z-index: 2;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--amarillo-mostaza);
    margin-bottom: 8px;
}

.feature-content {
    flex: 1;
}

.features-carousel .feature h3 {
    font-size: 1.5rem;
    color: var(--blanco);
}

.features-carousel .feature p {
    font-size: 1.15rem;
    color: var(--gris-suave);
    line-height: 1.4;
}

/* Navegación del carrusel de características */
.feature-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--amarillo-mostaza);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    backdrop-filter: blur(10px);
}

.feature-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--blanco);
    transform: translateY(-50%) scale(1.1);
}

.feature-prev {
    left: 8px;
}

.feature-next {
    right: 8px;
}

/* Carrusel de opiniones estilo Google Maps */
.testimonials-section {
    padding: 48px 0;
    background: rgba(255,255,255,0.02);
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: var(--amarillo-mostaza);
}

.testimonials-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--amarillo-mostaza) rgba(255,255,255,0.1);
}

.testimonials-carousel::-webkit-scrollbar {
    height: 8px;
}

.testimonials-carousel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
    background: var(--amarillo-mostaza);
    border-radius: 10px;
}

.testimonials-carousel::-webkit-scrollbar-thumb:hover {
    background: #d4af2a;
}

.testimonial-card {
    min-width: 300px;
    max-width: 340px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.testimonial-author {
    font-weight: 500;
    color: #3c4043;
    font-size: 14px;
    margin: 0;
    line-height: 1.3;
}

.testimonial-date {
    font-size: 12px;
    color: #70757a;
    margin: 2px 0 0 0;
}

.stars {
    color: #fbbc04;
    font-size: 16px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.4;
    color: #3c4043;
    margin: 0;
    font-style: normal;
}

.google-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.scroll-hint {
    text-align: center;
    margin-top: 20px;
    color: var(--gris-suave);
    font-size: 0.9rem;
}

.scroll-hint i {
    color: var(--amarillo-mostaza);
    margin: 0 5px;
}

/* Responsividad específica de home */
@media (max-width: 992px) {
    .carousel-content h2 { font-size: 2.8rem; }
    .carousel-content p { font-size: 1.3rem; }
}

@media (max-width: 768px) {
    .productos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
    .producto-card img {
        height: 200px;
        max-width: 180px;
    }
    
    .carousel { height: 70vh; }
    .carousel-content h2 { font-size: 2.2rem; }
    .carousel-content p { font-size: 1.1rem; }
    
    .testimonial-card {
        min-width: 260px;
        max-width: 300px;
        padding: 16px;
    }
    
    .profile-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .testimonials-carousel {
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .cotiza-btn {
        font-size: 1rem;
        padding: 12px 18px;
        max-width: 90vw;
        width: auto;
        min-width: 0;
        box-sizing: border-box;
        white-space: normal;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    .producto-card img {
        height: 320px;
        max-width: 95vw;
    }
    
    .carousel { height: 60vh; }
    .carousel-content h2 { font-size: 1.8rem; }
    .carousel-content p { font-size: 1rem; }
    .text-section h2 { font-size: 2.2rem; }
    .text-section p { font-size: 1rem; }
    
    .features-carousel {
        height: 180px;
        min-height: 180px;
        margin-bottom: 60px;
    }
    
    .features-carousel .feature {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: auto !important;
        opacity: 1 !important;
        z-index: auto !important;
        padding: 20px 30px;
        gap: 16px;
        min-height: 180px;
        margin-bottom: 0;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .features-carousel .feature.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .features-carousel .feature h3 { font-size: 1.3rem; }
    .features-carousel .feature p { font-size: 1rem; }
    
    .feature-nav-btn {
        width: 20px;
        height: 20px;
        font-size: 8px;
    }
    
    .feature-prev { left: 4px; }
    .feature-next { right: 4px; }
    .proceso-img {
        max-width: 100%;
    }
    
    .testimonial-card {
        min-width: 240px;
        max-width: 280px;
        padding: 14px;
    }
    
    .profile-avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-right: 10px;
    }
    
    .testimonials-carousel {
        gap: 10px;
    }
    
    .testimonial-text {
        font-size: 13px;
    }
    
    .testimonial-author {
        font-size: 13px;
    }
}

@media (max-width: 550px) and (min-width: 300px) {
    .features-carousel {
        height: 200px;
        min-height: 200px;
        margin-bottom: 60px;
    }
    
    .features-carousel .feature {
        position: static !important;
        transform: none !important;
        left: auto !important;
        width: auto !important;
        opacity: 1 !important;
        z-index: auto !important;
        padding: 20px 25px;
        margin-bottom: 0;
        display: none;
        min-height: 200px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 16px;
    }
    
    .features-carousel .feature.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .feature-nav-btn {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }
    
    .feature-prev { left: 2px; }
    .feature-next { right: 2px; }
}

/* Mapa embebido pequeño */
.map-container-small {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: 200px;
    margin: 24px auto;
    max-width: 500px;
    width: 100%;
}

.map-container-small iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive para el mapa pequeño */
@media (max-width: 768px) {
    .map-container-small {
        height: 180px;
        margin: 20px auto;
        max-width: 100%;
        border-radius: 8px;
    }
    
    .map-container-small iframe {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .map-container-small {
        height: 160px;
        margin: 16px auto;
    }
}
