/* --- Basic Reset & Variables --- */
:root {
    --primary-color: #F97316;
    --primary-hover: #EA580C;
    --dark-blue: #0F172A;
    --mid-blue: #1e3a8a;
    --light-gray: #F1F5F9;
    --white-color: #FFFFFF;
    --border-color: #E2E8F0;
    --font-family: 'Poppins', sans-serif;
    --text-color: #334155;
    --link-color: #1e3a8a;
    --background-light: #f1f5f9;
    --background-section-alt: var(--white-color);
    --text-dark-blue: #042a63;
    --heading-color: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- General Section Styles --- */
.about-v3-main {
    overflow-x: hidden;
}

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

.alt-v3-background {
    background-color: var(--background-section-alt);
}

.section-v3-title {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-v3-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: var(--link-color);
    border-radius: 2px;
}

/* --- Section 1: Hero --- */
.about-v3-hero {
    background: linear-gradient(145deg, var(--dark-blue) 20%, var(--mid-blue) 100%);
    color: var(--white-color);
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-v3-hero::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-v3-container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-v3-text {
    flex: 1.3;
    padding-right: 40px;
}

.hero-v3-text h1 {
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.25;
}

.hero-v3-text p {
    font-size: 1.25rem;
    color: #e2e8f0;
    line-height: 1.7;
    max-width: 600px;
    opacity: 0.9;
}

.hero-v3-graphic {
    flex: 0.7;
    text-align: center;
}

.hero-v3-graphic img {
    max-width: 100%;
    height: auto;
    max-height: 380px;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

/* --- Section 2: Who We Are --- */
.who-v3-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.who-v3-text {
    order: 1;
}

.who-v3-text .section-v3-title {
    text-align: left;
    margin-bottom: 25px;
}

.who-v3-text .section-v3-title::after {
    left: 0;
    transform: translateX(0);
}

.who-v3-text p {
    font-size: 1.05rem;
    margin-bottom: 18px;
    text-align: justify;
}

.who-v3-image {
    text-align: center;
    order: 0;
}

.who-v3-image img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 30, 80, 0.12);
}

/* --- Section 3: Misión y Visión --- */
.mv-v3-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-v3-card {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 30, 80, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-v3-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 30, 80, 0.1);
}

.mv-v3-icon {
    background: linear-gradient(135deg, var(--text-color), var(--mid-blue));
    color: var(--white-color);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(27, 121, 252, 0.35);
}

.mv-v3-icon i {
    font-size: 2.2rem;
    line-height: 1;
}

.mv-v3-card h3 {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.mv-v3-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* --- Section 4: Valores Corporativos --- */
.values-v3-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.values-v3-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.values-v3-list li:last-child {
    border-bottom: none;
}

.values-v3-list i {
    font-size: 1.8rem;
    color: var(--link-color);
    flex-shrink: 0;
}

.values-v3-list strong {
    color: var(--heading-color);
    font-weight: 600;
    margin-right: 5px;
}

/* --- Section 5: Objetivos --- */
.objectives-v3-list {
    list-style: none;
    counter-reset: objectives-counter;
    padding: 0;
    max-width: 850px;
    margin: 40px auto 0 auto;
}

.objectives-v3-list li {
    counter-increment: objectives-counter;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 45px;
    line-height: 1.6;
}

.objectives-v3-list li::before {
    content: counter(objectives-counter);
    position: absolute;
    left: 0;
    top: -2px;
    background-color: var(--text-color);
    color: var(--white-color);
    font-weight: 600;
    font-size: 1rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Section 6: Zeitplan --- */
.project-v3-container {
    display: flex;
    align-items: center;
    gap: 70px;
    background-color: var(--dark-blue);
    color: var(--white-color);
    padding: 70px 60px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.project-v3-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.project-v3-text {
    flex: 1.5;
    z-index: 1;
}

.project-v3-text .section-v3-title {
    text-align: left;
    color: var(--white-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.project-v3-text .section-v3-title::after {
    background-color: var(--text-color);
    width: 50px;
}

.project-v3-text p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    text-align: left;
}

.zeitplan-highlight {
    color: var(--mid-blue);
    font-weight: 700;
}

.zeitplan-features {
    list-style: none;
    padding-left: 0;
    margin: 25px 0;
}

.zeitplan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.zeitplan-features i {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-top: 3px;
}

.zeitplan-closing {
    font-style: italic;
    color: #94a3b8;
    font-size: 1rem;
    margin-top: 25px;
}

.project-v3-visual {
    flex: 0.5;
    text-align: center;
    z-index: 1;
}

.project-v3-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 300px;
    background-color: var(--white-color);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Section 7: Servicios Adicionales --- */
.services-intro {
    text-align: center;
    max-width: 700px;
    margin: -10px auto 40px auto;
    font-size: 1.1rem;
}

.services-v3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-v3-item {
    text-align: center;
    padding: 30px 15px;
    border-radius: 8px;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 30, 80, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-v3-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 30, 80, 0.1);
}

.service-v3-item i {
    font-size: 2.8rem;
    color: var(--mid-blue);
    margin-bottom: 15px;
    display: inline-block;
}

.service-v3-item h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.service-v3-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
}

/* --- ESTILOS DE LA SECCIÓN DE TESTIMONIO DEL CEO --- */
.ceo-testimonial-section {
    background-color: var(--background-section-alt);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 30, 80, 0.08);
    overflow: hidden;
    margin-top: 20px;
}

.ceo-testimonial-card {
    display: grid;
    grid-template-columns: 40% 60%;
    background-color: var(--dark-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* COLUMNA DE LA IMAGEN (IZQUIERDA) */
.ceo-image-column {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.ceo-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* COLUMNA DEL CONTENIDO (DERECHA) */
.ceo-content-column {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white-color);
    background-color: var(--dark-blue);
}

.ceo-quote-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 25px;
    color: var(--primary-color);
    fill: currentColor;
}

.ceo-testimonial-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #e2e8f0;
    text-align: center;
}

.ceo-testimonial-text b {
    font-weight: 600;
    color: var(--white-color);
}

.ceo-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    width: 100%;
}

.ceo-person-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.ceo-person-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white-color);
    letter-spacing: 0.5px;
}

.ceo-person-title {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.ceo-person-title strong {
    font-weight: 600;
    color: #cbd5e1;
}

/* ENLACE */
.ceo-read-story-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    padding: 6px 0;
    text-align: center;
    width: 100%;
}

.ceo-read-story-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
    transform: translateX(5px);
}

/* =========================================== */
/* RESPONSIVE DESIGN - ORGANIZADO POR DISPOSITIVO */
/* =========================================== */

/* ===== TABLET (768px - 992px) ===== */
@media (max-width: 992px) {
    /* Ajustes generales */
    .section-padding {
        padding: 60px 0;
    }
    
    .section-v3-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    
    /* Hero Section - Texto centrado */
    .hero-v3-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .hero-v3-text {
        padding-right: 0;
    }
    
    .hero-v3-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-v3-text p {
        margin: 0 auto;
        text-align: center;
    }
    
    /* Who We Are Section - Imagen y texto apilados, texto centrado */
    .who-v3-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .who-v3-image {
        order: 0;
    }
    
    .who-v3-text {
        order: 1;
        text-align: center;
    }
    
    .who-v3-text .section-v3-title {
        text-align: center;
    }
    
    .who-v3-text .section-v3-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .who-v3-text p {
        text-align: center;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .who-v3-image img {
        max-width: 65%;
    }
    
    /* Misión y Visión - Apilados, texto centrado */
    .mv-v3-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .mv-v3-card {
        text-align: center;
    }
    
    /* Zeitplan Section - Apilados, texto centrado */
    .project-v3-container {
        flex-direction: column;
        gap: 50px;
        padding: 50px 40px;
        text-align: center;
    }
    
    .project-v3-text .section-v3-title {
        text-align: center;
    }
    
    .project-v3-text .section-v3-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .project-v3-text p {
        text-align: center;
    }
    
    .project-v3-visual img {
        max-height: 250px;
    }
    
    .zeitplan-features {
        text-align: left;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Servicios Grid - 2 columnas */
    .services-v3-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* CEO Testimonial - Ajustes tablet */
    .ceo-testimonial-card {
        grid-template-columns: 35% 65%;
    }
    
    .ceo-content-column {
        padding: 35px 30px;
    }
    
    .ceo-testimonial-text {
        font-size: 1.05rem;
        text-align: center;
    }
    
    .ceo-person-info {
        text-align: center;
    }
}

/* ===== MOBILE (576px - 768px) ===== */
@media (max-width: 768px) {
    /* General */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .section-v3-title {
        font-size: 1.9rem;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-v3-text h1 {
        font-size: 2.4rem;
        text-align: center;
    }
    
    .hero-v3-text p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    /* Who We Are */
    .who-v3-container {
        gap: 40px;
    }
    
    .who-v3-image img {
        max-width: 75%;
    }
    
    .who-v3-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Misión y Visión */
    .mv-v3-card {
        padding: 30px 25px;
        text-align: center;
    }
    
    .mv-v3-card h3 {
        font-size: 1.4rem;
    }
    
    /* Valores - Centrados */
    .values-v3-list {
        text-align: center;
    }
    
    .values-v3-list li {
        font-size: 1rem;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .values-v3-list i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    /* Objetivos - Centrados */
    .objectives-v3-list {
        text-align: center;
    }
    
    .objectives-v3-list li {
        font-size: 1rem;
        padding-left: 0;
        padding-top: 40px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .objectives-v3-list li::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }
    
    /* Zeitplan */
    .project-v3-container {
        padding: 40px 25px;
        text-align: center;
    }
    
    .project-v3-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    .zeitplan-features li {
        font-size: 0.95rem;
        text-align: left;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .zeitplan-features i {
        font-size: 1.1rem;
    }
    
    /* Servicios */
    .services-intro {
        font-size: 1rem;
        text-align: center;
    }
    
    .services-v3-grid {
        gap: 20px;
    }
    
    .service-v3-item {
        padding: 25px 15px;
        text-align: center;
    }
    
    .service-v3-item i {
        font-size: 2.3rem;
    }
    
    .service-v3-item h4 {
        font-size: 1rem;
    }
    
    /* CEO Testimonial - Apilado en móvil */
    .ceo-testimonial-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .ceo-image-column {
        min-height: 280px;
        max-height: 280px;
    }
    
    .ceo-content-column {
        padding: 30px 25px;
    }
    
    .ceo-testimonial-text {
        font-size: 1.05rem;
        text-align: center;
    }
    
    .ceo-person-info {
        text-align: center;
    }
}

/* ===== SMALL MOBILE (480px - 576px) ===== */
@media (max-width: 576px) {
    /* General */
    body {
        font-size: 15px;
    }
    
    .section-v3-title {
        font-size: 1.7rem;
        text-align: center;
    }
    
    /* Hero - Texto centrado */
    .hero-v3-text h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-v3-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    /* Who We Are */
    .who-v3-image img {
        max-width: 85%;
    }
    
    .who-v3-text p {
        text-align: center;
    }
    
    /* Misión y Visión */
    .mv-v3-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .mv-v3-icon {
        width: 60px;
        height: 60px;
    }
    
    .mv-v3-icon i {
        font-size: 1.8rem;
    }
    
    .mv-v3-card h3 {
        font-size: 1.3rem;
    }
    
    /* Valores - Centrados y apilados */
    .values-v3-list {
        margin-top: 30px;
    }
    
    .values-v3-list li {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 15px 0;
        text-align: center;
    }
    
    .values-v3-list i {
        margin-bottom: 5px;
    }
    
    /* Objetivos - Centrados */
    .objectives-v3-list {
        margin-top: 30px;
    }
    
    .objectives-v3-list li {
        padding-left: 0;
        padding-top: 35px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .objectives-v3-list li::before {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    /* Zeitplan - Texto centrado */
    .project-v3-container {
        padding: 35px 20px;
        text-align: center;
    }
    
    .zeitplan-features li {
        align-items: flex-start;
        text-align: left;
    }
    
    /* Servicios - 1 columna */
    .services-v3-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-v3-item {
        padding: 25px 20px;
        text-align: center;
    }
    
    /* CEO Testimonial */
    .ceo-image-column {
        min-height: 250px;
        max-height: 250px;
    }
    
    .ceo-content-column {
        padding: 25px 20px;
    }
    
    .ceo-testimonial-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .ceo-person-name {
        font-size: 1.2rem;
    }
    
    .ceo-person-info {
        text-align: center;
    }
}

/* ===== EXTRA SMALL MOBILE (< 480px) ===== */
@media (max-width: 480px) {
    /* General */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-v3-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        text-align: center;
    }
    
    /* Hero */
    .about-v3-hero {
        padding: 60px 0;
    }
    
    .hero-v3-text h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Who We Are */
    .who-v3-container {
        gap: 30px;
    }
    
    .who-v3-image img {
        max-width: 90%;
    }
    
    .who-v3-text p {
        text-align: center;
    }
    
    /* Misión y Visión */
    .mv-v3-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    /* Zeitplan */
    .project-v3-container {
        padding: 30px 15px;
        text-align: center;
    }
    
    .project-v3-text .section-v3-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    /* CEO Testimonial */
    .ceo-image-column {
        min-height: 220px;
        max-height: 220px;
    }
    
    .ceo-content-column {
        padding: 20px 15px;
    }
    
    .ceo-quote-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 15px;
    }
    
    .ceo-testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .ceo-person-name {
        font-size: 1.1rem;
    }
    
    .ceo-person-title {
        font-size: 0.9rem;
    }
    
    .ceo-person-info {
        text-align: center;
    }
}

/* ===== LANDSCAPE MOBILE & SMALL HEIGHTS ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .section-padding {
        padding: 40px 0;
    }
    
    .ceo-image-column {
        min-height: 200px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .about-v3-hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .hero-v3-graphic,
    .who-v3-image img,
    .project-v3-visual,
    .ceo-image-column {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0 !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    /* Centrar texto en impresión */
    .section-v3-title,
    .hero-v3-text h1,
    .who-v3-text p,
    .mv-v3-card,
    .values-v3-list,
    .objectives-v3-list,
    .project-v3-text p,
    .services-intro,
    .ceo-testimonial-text,
    .ceo-person-info {
        text-align: center !important;
    }
}