/* ===== ESTILOS GENERALES ===== */
:root {
    /* TAMAÑO BASE REDUCIDO UN 10% (de 16px a 14.4px) */
    font-size: 14.4px;
    
    --color-primario: #2C3E50;
    --color-secundario: #7F8C8D;
    --color-texto: #2C3E50;
    --color-texto-claro: #5D6D7E;
    --color-fondo: #F5F7FA;
    --color-blanco: #FFFFFF;
    --color-borde: #E5E9F0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-texto);
    line-height: 1.6;
    background-color: var(--color-fondo);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 54px 0;
}

section {
    padding: 18px 0;
}

h1, h2, h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 300;
    margin-bottom: 18px;
    color: var(--color-primario);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 13px;
}

h2.section-title {
    text-align: center;
    margin-bottom: 36px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 2px;
    background-color: var(--color-secundario);
}

p {
    margin-bottom: 13px;
    color: var(--color-texto-claro);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 27px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--color-secundario);
    transform: translateY(-2px);
}

.btn-large {
    padding: 11px 27px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn i {
    margin-right: 7px;
}

/* ===== HEADER (SIN BOTONES, MÁS SEPARACIÓN) ===== */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 31px 0;
}

.logo-img {
    height: 54px;
    width: auto;
    margin-right: 45px;
}

.nav-list {
    display: flex;
    gap: 45px;
}

.nav-list a {
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-list a:hover {
    color: var(--color-secundario);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.35rem;
    color: var(--color-primario);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    position: relative;
}

.hero-logo-container {
    text-align: center;
    padding: 54px 0 45px;
    background-color: white;
}

.hero-logo-img {
    max-width: 1170px;
    width: 98%;
    height: auto;
    display: inline-block;
}

.hero-image {
    height: 675px;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    text-align: left;
}

.hero-title {
    color: white;
    font-size: 3.6rem;
    margin-bottom: 18px;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 18px;
}

/* ===== CARDS ===== */
.card {
    background: white;
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--color-borde);
}

/* ===== VALORES ===== */
.valor-item {
    text-align: center;
    padding: 18px;
}

.valor-item i {
    font-size: 2rem;
    color: var(--color-secundario);
    margin-bottom: 13px;
}

.valor-item h3 {
    font-size: 0.95rem;
    margin-bottom: 0;
    font-weight: 400;
}

/* ===== SERVICIOS ===== */
.service-card {
    background: white;
    padding: 27px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s;
    text-align: center;
    border: 1px solid var(--color-borde);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.25rem;
    color: var(--color-secundario);
    margin-bottom: 18px;
}

.service-card h3 {
    margin-bottom: 13px;
    font-weight: 400;
}

/* ===== LISTA CHECK ===== */
.check-list li {
    margin-bottom: 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.check-list i {
    color: var(--color-secundario);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===== NUESTROS CLIENTES ===== */
.casos {
    background-color: white;
    border-top: 1px solid var(--color-borde);
    border-bottom: 1px solid var(--color-borde);
}

.caso-card {
    background: white;
    padding: 27px;
    border-radius: 4px;
    border-left: 3px solid var(--color-secundario);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.caso-card h3 {
    margin-bottom: 5px;
    font-weight: 400;
}

.caso-titulo {
    font-style: italic;
    color: var(--color-secundario);
    margin-bottom: 13px;
    font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-item {
    margin-bottom: 22px;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--color-texto);
    font-weight: 400;
}

.faq-item p {
    margin-bottom: 0;
    padding-left: 18px;
}

/* ===== CONTACTO (CON DOS BOTONES) ===== */
.contacto-info {
    background: white;
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--color-borde);
}

.contacto-info p {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.contacto-info i {
    color: var(--color-secundario);
    font-size: 1.1rem;
    width: 22px;
}

.contacto-info a {
    transition: color 0.3s;
}

.contacto-info a:hover {
    color: var(--color-secundario);
}

.redes-sociales {
    display: flex;
    gap: 18px;
    margin-top: 27px;
}

.redes-sociales a {
    color: var(--color-secundario);
    font-size: 1.35rem;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: var(--color-primario);
}

.contacto-botones {
    display: flex;
    gap: 13px;
    margin-top: 27px;
    flex-wrap: wrap;
}

.contacto-botones .btn {
    flex: 1;
    min-width: 162px;
}

/* ===== FORMULARIO ===== */
.contacto-form {
    background: white;
    padding: 36px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid var(--color-borde);
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--color-borde);
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secundario);
}

.form-note {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 13px;
    color: var(--color-texto-claro);
}

/* ===== FOOTER ===== */
.footer {
    background-color: white;
    color: var(--color-texto-claro);
    text-align: center;
    border-top: 1px solid var(--color-borde);
}

.footer p {
    color: var(--color-texto-claro);
    margin-bottom: 0;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE (escritorio y tablets) ===== */
@media (max-width: 1200px) {
    .hero-image {
        height: 585px;
    }
    
    .hero-title {
        font-size: 3.15rem;
    }
    
    .hero-logo-img {
        max-width: 990px;
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-image {
        height: 495px;
    }
    
    .hero-title {
        font-size: 2.7rem;
    }
    
    .hero-logo-img {
        max-width: 810px;
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 99px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 99px);
        background-color: white;
        transition: left 0.3s;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 36px;
        gap: 22px;
    }
    
    .hero-image {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-logo-img {
        max-width: 650px;
    }
    
    .contacto-botones {
        flex-direction: column;
    }
    
    .contacto-botones .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-logo-container {
        padding: 40px 0 30px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-logo-img {
        max-width: 350px;
    }
}

/* ===== AJUSTES EXCLUSIVOS PARA VISTA VERTICAL MÓVIL (VERSIÓN FINAL) ===== */
@media (max-width: 768px) and (orientation: portrait) {
    
    /* ===== HEADER: LOGO GIGANTE +10% ===== */
    .header .logo-img {
        display: none;
    }
    
    .header .logo {
        background-image: url('../images/logo-grande.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 297px;        /* +10% desde 270px */
        height: 83px;        /* Altura proporcional (+10%) */
        margin-right: 0;
    }
    
    .header-container {
        padding: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-toggle {
        margin-top: 10px;
    }
    
    /* ===== HERO: SIN LOGO ARRIBA ===== */
    .hero-logo-container {
        display: none;
    }
    
    .hero {
        margin-top: -20px;
    }
    
    .hero-image {
        height: auto;
        min-height: 600px;
        display: flex;
        align-items: flex-end;
    }
    
    .hero-overlay {
        position: relative;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 80%);
        padding: 50px 0 60px;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 40px;
        color: white;
    }
    
    /* ===== BOTONES MUY ABAJO ===== */
    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn-large {
        width: auto;
        min-width: 200px;
        max-width: 240px;
        margin: 0;
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn-primary i {
        font-size: 1.3rem;
        margin-right: 10px;
    }
}

/* Ajustes para móviles muy pequeños en vertical */
@media (max-width: 480px) and (orientation: portrait) {
    .header .logo {
        width: 238px;          /* 297px * 0.8 */
        height: 66px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .hero-image {
        min-height: 550px;
    }
    
    .hero-buttons {
        gap: 15px;
        margin-top: 20px;
    }
    
    .hero-buttons .btn-large {
        min-width: 170px;
        padding: 12px 15px;
        font-size: 1rem;
    }
}