﻿body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* Banda institucional */
.zona-aida {
    width: 100%;
    padding: 60px 20px;
}

.fondo-azul-i {
    background: linear-gradient(to right, #e6f2ff, #cce0f5, #99bde0);
}
.fondo-azul-ii {
    background: linear-gradient(to right, #eaf7ff, #d0eaf5, #b3d8e8);
    padding: 60px 0;
}

.fondo-azul-iii {
    background: linear-gradient(to right, #e8fdfd, #c6e9f0, #9fd3db);
    padding: 60px 0;
}
.fondo-azul-iv {
    background: linear-gradient(to right, #f5f6ff, #d9dbf0, #b8b9e0);
    padding: 60px 0;
}


.fondo-azul-v {
    background: linear-gradient(to right, #e9fff9, #c8f0e6, #a3d9cc);
    padding: 60px 0;
}

.fondo-azul-vi {
    background: linear-gradient(to right, #f5f6ff, #d9dbf0, #b8b9e0);
    padding: 60px 0;
}
.fondo-azul-vii {
    background: linear-gradient(to right, #fff9f0, #ffe0c2, #ffc48a);
    padding: 60px 0;
}



/* 1. Variables y Tipografía */
:root {
    /* Colores base */
    --color-bg: #f5f7fa;
    --color-primary: #1e2a38;
    --color-light: #ffffff;
    --color-text: #2c3e50;
    --color-accent: #00b894;
    --color-secondary: #ff7675;
    /* Acentos por sección */
    --aida-iii-accent: #1abc9c;
    --aida-iv-accent: #3498db;
    --aida-v-accent: #e67e22;
    --aida-vi-accent: #9b59b6;
    /* Tipografía */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Roboto:wght@400;500&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

.default-header {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.header-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    margin: 0;
    padding: 0;
}




/* 2. Hero Section */

.hero-cards {
    position: static;
    margin-top:20px;
    bottom: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.hero-section {
    width: 100%;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: url('../Images/cabecerapaint.jpg') no-repeat center center;
    background-size: cover;
    padding-top: 80px;
}

/* Contenido central del Hero */
.hero-content {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    color: #fff;
}

    .hero-content h1,
    .hero-content p {
        position: relative;
        margin-bottom: 20px;
    }




@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.arrow-down {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
}

    .arrow-down img {
        width: 100%;
        transition: transform 0.3s ease-in-out;
    }

        .arrow-down img:hover {
            transform: scale(1.1);
        }


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* 3. Service Cards (AIDA I & II) */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}


.service-card {
    background: #808080;
    border: 5px solid #ff6f61;
    border-radius: 10px;
    padding: 15px;
    width: 350px;
    flex-shrink: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}


.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.icon-container img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    font-weight: 500;
}

/* 4. Componente unificado de Cards (AIDA III–VI) */
.aida-card {
    background: var(--color-light);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
}

.aida-card-header {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--color-primary);
}

.aida-iii .aida-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--aida-iii-accent));
}

.aida-iv .aida-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--aida-iv-accent));
}

.aida-v .aida-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--aida-v-accent));
}

.aida-vi .aida-card-header {
    background: linear-gradient(135deg, var(--color-primary), var(--aida-vi-accent));
}

.aida-card-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .aida-card-body {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.aida-card-text p {
    margin-bottom: 1rem;
}

.aida-card-media img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s;
}

    .aida-card-media img:hover {
        transform: scale(1.05);
    }

/* 5. Botones */
.btn-aida {
    width: 245px; /* ancho fijo para todos */
    min-height: 60px; /* altura mínima para que el texto entre */
    background-color: #ffffff;
    color: #003366;
    border: 2px solid #003366;
    padding: 10px 16px; /* espacio interno equilibrado */
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    display: inline-block; /* 🔹 evita que se estiren como flex */
    white-space: normal; /* 🔹 permite que el texto se divida en dos líneas si es necesario */
    overflow-wrap: break-word; /* 🔹 evita que el texto se desborde */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-aida:hover {
    background-color: #003366;
    color: #ffffff;
    border-color: #003366;
}

/* 6. Pie de Página */
.footer {
    padding: 1.5rem 0;
    background: #e9ecef;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

/* 7. AOS (Scroll Animations) */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

    [data-aos].aos-animate {
        opacity: 1;
    }
html {
    scroll-behavior: smooth;
}
html {
    scroll-behavior: smooth;
}

/* 🔧 Correcciones visuales específicas */

/* 1. Imagen de cabecera ocupa toda la pantalla */
.header-img {
    display: block;
    width: 100%;
    height: 220px; /* Ajuste fino para mayor presencia */
    object-fit: cover;
    margin-top:0 !important ;

    margin: 0;
    padding: 0;
}

/* 2. Elimina espacio blanco debajo del menú */
body, form {
    margin-top: 58px !important;
    padding-top: 0 !important;
}

.default-header {
    margin-top: -1px;
    padding: 0;
}

/* 3. Mejora contraste del texto sobre fondo oscuro */
.hero-content h1,
.hero-content p {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 4. Botones blancos, cuadrados y legibles */
.btn-aida {
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #ff6f61;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-aida:hover {
    background-color: #ff6f61;
    color: #ffffff;
}

/* 5. Evita colores estridentes en botones outline */

.btn-outline-primary {
    color: #333333 !important;
    border-color: #ff6f61 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #ff6f61 !important;
    color: #ffffff !important;
    border-color: #ff6f61 !important;
}


/* Zona 3: Carrusel */
.zona-carrusel {
    margin-top:10px;
    margin-bottom:10px;
    height:300px;
    width: 100%;
    background-color: #f2f2f2;
    padding: 0;
    overflow:hidden;
}

    /* Carrusel interno */
    .zona-carrusel .carousel-inner,
    .zona-carrusel .carousel-item,
    .zona-carrusel .carousel-item img {
        width: 100%;
        height: 100%;
    }

    .zona-carrusel .carousel-item img {
        width: 100%;
        height: 300px; /* 🔹 altura fija para asegurar visibilidad */
        object-fit: cover;
        display: block;
    }

.carousel-caption {
    color: #002244; /* 🔹 azul oscuro institucional */
    background-color: rgba(255, 255, 255, 0.7); /* 🔹 fondo semitransparente */
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
    top: 35%; /* 🔹 antes suele estar en 40–50% */
    transform: translateY(-35%);
    position: absolute;
    left: 50%;
    transform: translate(-50%, -35%);
    text-align: center;
}

.carousel-caption h2,
.carousel-caption p {
    color: #002244;
    font-weight: bold;
    text-shadow: none;
}

.carousel-title {
    font-size: 2rem; /* 🔹 antes suele estar en 1.5rem */
    font-weight: 700;
}

.carousel-subtitle {
    font-size: 1.2rem; /* 🔹 más legible sin exagerar */
    font-weight: 500;
}



/* Controles del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #ff6f61;
    border-radius: 50%;
    padding: 10px;
}
/* Botones debajo del carrusel */
.carousel-access {
    background: linear-gradient(to right, #eaf4ff, /* azul pastel suave */
    #cce0f5, /* azul cielo claro */
    #99bde0, /* azul medio institucional */
    #4f7fc1, /* azul técnico vibrante */
    #1f3d7a /* azul profundo elegante */
    );
    padding: 50px 30px;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


.carousel-access .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Texto institucional */
.default-header {
    margin-top: 20px;
    margin-bottom:20px;
    /*padding: 0 20px;*/
    text-align: center;
    position: relative;
    z-index: 1;
    display: block;
}




.default-header h1 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.default-header p {
    font-size: 15px;
    margin-bottom: 8px;
}

/* Cards AIDA */
.aida-i,
.aida-ii,
.aida-iii,
.aida-iv,
.aida-v,
.aida-vi {
    margin-top: 30px;
}

.img-institucional {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.img-intercalada {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    display: block;
    border-radius: 10px;
}

.texto-aida {
    text-align: justify;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 15px;
}
/* ===========================
   NAVBAR INSTITUCIONAL BLANCO
   =========================== */

    .navbar-aida {
        background: #ffffff !important;
        border-bottom: 1px solid #e5e5e5;
        padding: 14px 0;
    }

    /* LINKS DEL MENÚ */
    .navbar-aida .nav-link {
        color: #333 !important; /* gris oscuro visible */
        font-weight: 500 !important; /* elegante */
        text-decoration: none !important;
        transition: color .2s ease;
    }

        /* HOVER DEL MENÚ */
        .navbar-aida .nav-link:hover {
            color: #1a73e8 !important; /* azul moderno */
            font-weight: 600 !important; /* leve énfasis */
            text-decoration: none !important;
        }

    /* LOGO */
    .navbar-aida .navbar-brand img {
        height: 60px;
    }





