/* ================= VARIABLES CORPORATIVAS ================= */
:root {
    --primary: #1a1a1a;       /* Texto oscuro */
    --accent-orange: #f57c00; /* Naranja corporativo */
    --accent-yellow: #ffc107; /* Amarillo/Dorado corporativo */
    --bg-white: #ffffff;
    --bg-offwhite: #fafafa;
    --text-gray: #555555;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 40px rgba(245, 124, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* ================= SECCIÓN GENERAL ================= */
.about {
    padding: 6rem 2rem;
    background: var(--bg-offwhite);
    position: relative;
    overflow: hidden;
}

.container-empresa {
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HEADER DE EMPRESA ================= */
.empresa-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.badge-small {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-yellow);
    padding-bottom: 5px;
}

.empresa-text-block h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.lead-modern {
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: left;
}

.empresa-text-block p {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    text-align: left;
    margin-bottom: 1rem;
}

/* Stats Box */
.empresa-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--accent-orange);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ================= GRID DE TARJETAS ================= */
.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

/* Tarjeta Fundador */
.card-fundador {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border-top: 5px solid var(--accent-yellow);
}

.card-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.img-fundador {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-fundador:hover .img-fundador {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
}

.card-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
}

.highlight-text {
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--accent-orange);
    padding-left: 1rem;
    margin-top: 1.5rem;
    background: #fff8e1;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* --- LEMA DE LA FUNDADORA --- */
.founder-quote-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    animation: fadeIn 1s ease-out;
}

.founder-lemma {
    font-family: 'Great Vibes', cursive !important;
    font-size: 1.6rem !important;
    color: #f57c00 !important; /* HEX directo para asegurar el naranja */
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
    font-style: normal !important;
    display: block !important;
    text-decoration: none !important;
}

.founder-signature {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* Tarjeta Valores */
.card-valores {
    background: var(--bg-white);
    color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--accent-orange);
    display: flex;
    flex-direction: column;
}

.card-valores h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-orange);
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.valores-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.valores-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-box {
    min-width: 50px;
    height: 50px;
    background: #fff8e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.valores-list li:hover .icon-box {
    background: var(--accent-orange);
    color: var(--bg-white);
    transform: rotate(10deg);
}

.valores-list strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.valores-list span {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* --- SEGMENTO DE RESEÑAS GOOGLE (CORREGIDO Y MEJORADO) --- */
.reviews-segment {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    animation: fadeIn 0.8s ease-out;
    width: 100%;
}

.reviews-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    width: 100%;
}

.google-icon {
    font-size: 1.2rem;
    color: #DB4437;
}

.reviews-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reviews-header .separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #e0e0e0, transparent);
}

/* Contenedor del Carrusel (CRÍTICO) */
.reviews-carousel-container {
    overflow: hidden; /* Oculta lo que se sale */
    position: relative;
    min-height: 120px;
    width: 100%;
}

.reviews-track {
    display: flex; /* Pone las tarjetas en fila horizontal */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Tarjeta Individual de Reseña (CRÍTICO) */
.review-card {
    min-width: 100%; /* Obliga a ocupar todo el ancho */
    width: 100%;
    flex-shrink: 0; /* Evita que se encoja */
    padding: 0.5rem 0.2rem;
    box-sizing: border-box;
    opacity: 0.9;
    transition: opacity 0.3s;
    
    /* Estilos centrados para móvil */
    text-align: left; /* TEXTO A LA IZQUIERDA POR DEFECTO */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ESTRELLAS MEJORADAS */
.stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.1);
}

.review-text {
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
    line-height: 1.5;
    margin: 0 0 0.6rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.review-author {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    text-align: left;
}

/* PUNTOS INDICADORES MEJORADOS */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    width: 100%;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.5;
}

.dot.active {
    background-color: var(--accent-orange);
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 5px rgba(245, 124, 0, 0.4);
}

/* ================= TIMELINE ================= */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-header h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-yellow);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 4rem;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    justify-content: flex-start;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.3);
    z-index: 2;
}

.timeline-item:nth-child(odd)::after { right: -8px; }
.timeline-item:nth-child(even)::after { left: -8px; }

.timeline-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    width: 100%;
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--accent-yellow);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.year-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: inherit;
}

.timeline-img { display: none; }

/* ================= RESPONSIVE ================= */

/* Tablet y Móvil Grande (hasta 900px) */
@media (max-width: 900px) {
    .empresa-header { grid-template-columns: 1fr; gap: 2rem; }
    .empresa-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px !important; padding-right: 0 !important; margin-left: 0 !important; text-align: left !important; justify-content: flex-start !important; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { align-self: auto; }
    .timeline-item::after { left: 12px !important; right: auto !important; }
    
    .empresa-text-block h2 { font-size: 2.2rem; }
}

/* Móvil Estándar (hasta 768px) */
@media (max-width: 768px) {
    
    /* 1. CENTRADO DE LAS CAJAS CONTENEDORAS (LO QUE FALLABA) */
    .empresa-stats, 
    .empresa-grid, 
    .card-fundador, 
    .card-valores {
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        align-items: center; /* Esto centra la caja horizontalmente */
    }

    /* Aseguramos que el contenido de TEXTO dentro siga a la izquierda */
    .card-content, 
    .card-valores > h3, 
    .reviews-segment {
        text-align: left; 
        width: 100%; /* Ocupan todo el ancho de la caja centrada */
        box-sizing: border-box;
    }

    /* Stats */
    .empresa-stats {
        gap: 1.5rem !important;
        width: 100%;
        padding: 0 1rem;
    }
    .stat-item {
        width: 100% !important;
        max-width: 400px; /* Ancho máximo para que no se estiren demasiado */
        margin: 0 auto;
        padding: 1.5rem !important;
        text-align: center; /* Las stats sí van centradas (número e icono) */
        border-left: none;
        border-top: 4px solid var(--accent-orange);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .stat-item i { display: block; margin: 0 auto 1rem auto; }
    
    /* Grid Principal */
    .empresa-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }
    .card-fundador, .card-valores {
        width: 100%;
        max-width: 500px; /* CLAVE: Limita el ancho y lo centra con margin auto */
        text-align: left; /* Por defecto texto a la izquierda */
    }
    
    /* Pilares: Icono y texto alineados */
    .valores-list li { 
        gap: 1rem; 
        flex-direction: row; 
        align-items: flex-start; 
        text-align: left;
        margin-bottom: 1.5rem;
    }

    /* Lema de la fundadora: Centrado por ser una firma */
    .founder-quote-container {
        text-align: center;
        margin-top: 1.5rem;
        width: 100%;
    }
    .founder-lemma { 
        font-size: 1.4rem !important; 
        line-height: 1.3; 
        display: block;
        margin: 0 auto 0.5rem auto;
        text-align: center;
    }
    .founder-signature { 
        font-size: 0.75rem !important; 
        display: block;
        text-align: center;
    }
    .highlight-text {
        text-align: left; /* Cita a la izquierda */
        margin: 1.5rem 0;
        width: 100%;
    }
    
    /* Reseñas: Caja centrada, texto a la izquierda */
    .reviews-header {
        justify-content: flex-start; /* Título a la izquierda */
    }
    .reviews-header h4 { 
        font-size: 0.9rem; 
        white-space: nowrap; 
    }
    .review-card {
        text-align: left; /* TEXTO A LA IZQUIERDA */
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    .stars {
        margin-bottom: 0.5rem;
    }
    .review-text { 
        font-size: 0.85rem; 
        -webkit-line-clamp: 4; 
        line-clamp: 4;
        text-align: left;
        max-width: 100%;
        margin: 0 0 0.6rem 0;
    }
    .review-author { 
        font-size: 0.75rem; 
        text-align: left;
        display: block;
    }
    .carousel-dots {
        justify-content: center; /* Puntos sí centrados */
        margin-top: 15px;
        width: 100%;
    }
}

/* Móvil Pequeño (hasta 600px) */
@media (max-width: 600px) {
    .about { padding: 4rem 1.5rem; }
    .stat-item { padding: 1.2rem; }
    .stat-number { font-size: 2rem; }
    .card-content { padding: 1.5rem; }
    .empresa-text-block h2 { font-size: 1.8rem; }
    
    .founder-lemma { font-size: 1.2rem !important; }
    .reviews-header h4 { font-size: 0.75rem; }
}