/* === Global Settings === */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffac03;
    overflow-x: hidden;
}

/* Headings */
h1, h2 {
    font-family: 'Montserrat', sans-serif;
}

/* === Navbar === */
header .navbar {
    height: 10vh;
    box-shadow: 0 0.5vh 0.8vh rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 2.5vh;
}

header .navbar-brand img {
    border-radius: 50%;
    width: 10vh;
    height: 10vh;
}

.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    text-decoration: none;
    padding: 0 2.5vh;
    line-height: 10vh;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ea2336;
}

.navbar-collapse {
    background-color: #fff;
    border-radius: 2vh;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
    padding: 1.5vh;
}

/* Navbar en pantallas grandes */
@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
}

/* === Promo Banner === */
#promo-banner {
    position: relative;
    top: 10vh;
    width: 100%;
    background-color: #ea2336;
    text-align: center;
    padding: 2vh 0;
    font-weight: bold;
    font-size: 0.875rem;
    z-index: 1000;
}

#promo-banner a {
    color: white;
    text-decoration: none;
}

.promo-banner a:hover {
    color: #a00116;
}

/* Ajustes responsivos del promo-banner */
@media (max-width: 768px) {
    #promo-banner {
        font-size: 0.75rem;
        padding: 2vh;
        margin-top: 10vh;
    }
}

/* Asegurarse de que el banner también se vea en pantallas móviles */
@media (max-width: 768px) {
    #promo-banner {
        font-size: 0.75rem;
        padding: 10px;
        margin-top: 3.75rem; /* Ajuste para pantallas móviles */
    }
}

/* Asegurar que el banner sea visible en pantallas grandes */
@media (min-width: 992px) {
    #promo-banner {
        font-size: 1rem; /* Ajuste para pantallas grandes */
        padding: 15px 0; /* Ajuste de espacio */
        margin-top: 0; /* Eliminar margen superior si el navbar es fijo */
    }
}

/* Botones */
.btn-primary {
    background-color: #a00116;
    border-color: #a00116;
    transition: background-color 0.3s, border-color 0.3s;
    border-radius: 1rem;
}

.btn-primary:hover {
    background-color: #68000e;
    border-color: #a00116;
}

/* Formulario */
form .form-label {
    font-weight: bold;
    color: #333;
}

form .form-control {
    border-radius: 0.5rem;
    box-shadow: inset 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);  /* 1px y 3px */
    transition: box-shadow 0.3s;
}

form .form-control:focus {
    box-shadow: 0 0 0.3125rem #68000e;  /* 5px */
    border-color: #a00116;
}

form button {
    border-radius: 1rem;
    font-weight: bold;
    padding: 0.625rem 1.25rem;  /* 10px 20px */
}

/* Mapa */
iframe {
    width: 100%;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

/* Section intro-davidcaycedo */
.intro-davidcaycedo {
    background: url('../img/team/introdavid.png') center/cover no-repeat;
    height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
    padding: 1.875rem;         /* 30px */
}

.intro-davidcaycedo .text-content {
    max-width: 50rem;          /* 800px */
    margin-left: auto;
}

.intro-davidcaycedo h1 .subtitulo {
    font-size: 3rem;
    margin-bottom: 0.625rem;    /* 10px */
    font-weight: normal;
    display: block;
}

.intro-davidcaycedo h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 0.9375rem;   /* 15px */
}

.intro-davidcaycedo p {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;     /* 20px */
}

.intro-davidcaycedo .btn-black {
    background-color: #000;
    color: #fff;
    font-size: 1rem;           /* 16px */
    padding: 0.75rem 1.5625rem; /* 12px 25px */
    border: none;
    border-radius: 1.5625rem;   /* 25px */
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.intro-davidcaycedo .btn-black:hover {
    background-color: #444;
}

/* Secciones Misión y Visión */
.mision, .vision {
    padding: 2.5rem 1.25rem;    /* 40px 20px */
    display: flex;
    flex-wrap: wrap;
}

.mision-container, .vision-container {
    display: flex;
    width: 100%;
    gap: 1.25rem;             /* 20px */
}

.columna {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 18.75rem;        /* 300px */
}

.columna h2 {
    font-weight: bold;
    margin-bottom: 0.625rem;    /* 10px */
}

.columna p {
    font-size: 0.625rem;        /* 10px */
    color: #666;
    max-width: 31.25rem;        /* 500px */
}

/* Sección Misión */
.mision {
    background-color: #FCEEDD;
}

.mision h2 {
    color: #ea2336;
    font-size: 3rem;
}

.mision p {
    font-size: 1rem;
    color: #000;        /* 10px */
}

/* Sección Visión */
.vision {
    background-color: #FFAC03;
}

.vision h2 {
    color: #000;
    font-size: 3rem;
}

.vision p {
    font-size: 1rem;        /* 10px */
    color: #000;
}

/* Team Section */
.team {
    background-color: #e63946;
    color: white;
    text-align: center;
    padding: 2.5rem 1.25rem;    /* 40px 20px */
}

.team h2 {
    font-size: 3rem;
    font-weight: bold;
}

.team p {
    margin: 1.25rem 0 2.5rem;   /* 20px 0 40px */
    font-size: 1.5rem;
    line-height: 1.5;
}

/* Cards Section */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;             /* 20px */
    margin: 0 auto;
    max-width: 62.5rem;         /* 1000px */
    justify-items: center;
}

.cards > .card:nth-child(1) {
    grid-column: span 3;
}

.card {
    background: white;
    color: #333;
    padding: 1.25rem;         /* 20px */
    border-radius: 0.625rem;    /* 10px */
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);  /* 4px and 6px */
    text-align: center;
    width: 100%;
    max-width: 21.875rem;       /* 350px */
}

.card img {
    width: 100%;
    height: 15.625rem;         /* 250px */
    object-fit: cover;
    border-radius: 0.625rem;    /* 10px */
    margin-bottom: 0.625rem;    /* 10px */
}

.card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.25rem;    /* 8px 0 4px */
    font-weight: bold;
}

.card p {
    font-size: 0.90rem;
    line-height: 1.5;
    margin: 0.25rem 0;          /* 4px 0 */
    text-align: justify;
}

/* === Footer === */
footer {
    background-color: #000;
    text-align: center;
    padding: 2vh 0;
    color: #fff;
}

footer a {
    color: white;
}

footer p {
    margin: 1vh 0;
    font-size: 2vh;
}

footer .socials {
    display: inline-flex;
    gap: 2vh;
}

footer .socials a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5vh;
    padding: 0 1vh;
    position: relative;
}

footer .socials a:not(:first-child) {
    border-left: 1px solid #fff;
    padding-left: 1.5vh;
}

footer .socials a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) { /* 768px */
    body {
        font-size: 16px;
        margin: 0;
        padding: 0;
        background-color: #fceedd;
        overflow-x: hidden;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 10px 0;
        line-height: normal;
    }

    #promo-banner {
        font-size: 0.75rem;
        padding: 10px;
        margin-top: 3.75rem; /* Ajusta según la altura del navbar */
    }

    .intro-davidcaycedo h1 {
        font-size: 2.5rem;
    }

    .intro-davidcaycedo h1 .subtitulo  {
        font-size: 2rem;
    }

    .mision-container, .vision-container {
        flex-direction: column;
        align-items: center;
    }

    .mision h2 {
        font-size: 2.0rem
    }

    .vision h2 {
        font-size: 2.0rem
    }

    .mision, .vision p {
        font-size: 0.8rem;
    }

    .vision p {
        font-size: 0.8rem;
    }

    .cards {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
        width: 90%;
    }

    .cards p {
        font-size: 0.8rem;
    }

}