/* ============================================
   Font Face Declarations - Avant Garde
   ============================================ */
@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/AvantGardeITCbyBT-Book.eot');
    src: url('../fonts/AvantGardeITCbyBT-Book.eot?#iefix') format('embedded-opentype'),
        url('../fonts/AvantGardeITCbyBT-Book.woff2') format('woff2'),
        url('../fonts/AvantGardeITCbyBT-Book.woff') format('woff'),
        url('../fonts/AvantGardeITCbyBT-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/AvantGardeITCbyBT-Demi.eot');
    src: url('../fonts/AvantGardeITCbyBT-Demi.eot?#iefix') format('embedded-opentype'),
        url('../fonts/AvantGardeITCbyBT-Demi.woff2') format('woff2'),
        url('../fonts/AvantGardeITCbyBT-Demi.woff') format('woff'),
        url('../fonts/AvantGardeITCbyBT-Demi.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avant Garde';
    src: url('../fonts/AvantGardeITCbyBT-DemiOblique.eot');
    src: url('../fonts/AvantGardeITCbyBT-DemiOblique.eot?#iefix') format('embedded-opentype'),
        url('../fonts/AvantGardeITCbyBT-DemiOblique.woff2') format('woff2'),
        url('../fonts/AvantGardeITCbyBT-DemiOblique.woff') format('woff'),
        url('../fonts/AvantGardeITCbyBT-DemiOblique.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Colors */
    --primary-color: #2D5698;
    --primary-dark: #0f469f;
    --secondary-color: #706F6F;
    --text-dark: #000;
    --text-muted: #706F6F;
    --bg-blue-arabela: #2D5698;
    --bg-light: #f8f9fa;
    --bg-dark: #000;
    --white: #ffffff;

    /* Spacing */
    --section-padding: 5rem 0;
    --section-padding-sm: 3rem 0;

    /* Typography */
    --font-family-base: 'Avant Garde', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Transitions */
    --transition-base: all 0.3s ease;
}

.ff-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.blue-arabela {
    color: #2D5698 !important;
}

.red-arabela {
    color: #D50F34;
}

.green-arabela {
    color: #2DB5AD;
}

.yellow-arabela {
    color: #FAB413;
}

.dark-yellow {
    color: #aa7e18;
}

.bg-gray {
    background-color: #E2E3F1;
}

.bg-light-yellow {
    background-color: #FFF4E2;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

body {
    font-family: var(--font-family-base);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 76px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar {
    transition: var(--transition-base);
    padding: 1rem 0;
    font-family: 'Avant Garde', 'Montserrat', sans-serif;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-img.logo-principal {
    height: 50px;
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    padding-bottom: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-dark);
}

@media (min-width: 992px) {
    .navbar {
        max-height: 100px;
    }
     .navbar.index-navbar {
        min-height: 100px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section-main {
    background-image: url('../img/hero-img.webp');
}

.hero-section-formacion {
    background-image: url('../img/hero-img-formacion.webp');
    background-position: bottom;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(71, 71, 73, 0.086) 0%, rgba(33, 37, 41, 0.7) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
    font-family: 'Avant Garde', 'Montserrat', sans-serif;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #c9cce4;
    font-size: 1.7rem;
    font-family: 'Montserrat', sans-serif;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-section {
        background-attachment: scroll;
    }
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-sm);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Avant Garde', 'Montserrat', sans-serif;
}

/* Contact section title should be Avant Garde (inherits from .section-title) */
/* Contact form and all its elements should be Montserrat */
#contacto .contact-form,
#contacto .contact-form input,
#contacto .contact-form textarea,
#contacto .contact-form button,
#contacto .contact-form .form-control {
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Section divider */
.section-divider {
    width: 120px;
    height: 2px;
    background: var(--primary-color);
}

/* ============================================
   Intro / About Section
   ============================================ */
#about-section {
    position: relative;
}

#about-section .container {
    position: relative;
    z-index: 1;
}

.intro-content {
    font-size: 1.1rem;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

/* Section decorative flowers */
.section-flower {
    position: absolute;
    z-index: 0;
    max-width: 150px;
    height: auto;
    pointer-events: none;
}

.section-flower-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .section-flower {
        max-width: 120px;
        opacity: 0.7;
    }

    #contacto .section-flower-left {
        top: 25%;
    }
}

@media (max-width: 992px) {
    #contacto .section-flower-left {
        top: 25%;
    }
}

/* ============================================
   Areas Section (Cards)
   ============================================ */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover,
.card-link:focus,
.card-link:visited,
.card-link:active {
    text-decoration: none;
    color: inherit;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.card-link:hover .card-image {
    transform: scale(1.1);
}

.area-image {
    flex-shrink: 0;
}

.card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.card-divider {
    width: 100%;
    height: 1px;
}

.card-divider.bg-asistencia {
    background: #D50F34;
}

.card-divider.bg-centro-medico {
    background: #2DB5AD;
}

.card-divider.bg-formacion {
    background: #FAB413;
}

.card {
    transition: var(--transition-base);
    border-radius: 0.5rem;
}

.card-body {
    padding: 1rem;
}

.card-text {
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

/* Card titles should be Avant Garde */
.card-title {
    font-family: 'Avant Garde', 'Montserrat', sans-serif;
}

/* ============================================
   Contact Section
   ============================================ */
#contacto {
    position: relative;
}

#contacto .container {
    position: relative;
    z-index: 1;
}

#contacto h4 {
    font-family: 'Montserrat', sans-serif;
}

.contact-item {
    font-family: 'Montserrat', sans-serif;
}

.contact-info {
    height: 100%;
}

.contact-item {
    padding: 1rem 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D5698;
}

.contact-icon-img {
    width: 2em;
    height: 2em;
    object-fit: contain;
}

.contact-form {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition-base);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.file-input-group {
    gap: 0.5rem;
}

.file-input-hidden {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-input-display {
    flex: 1;
}

.btn-attach {
    background-color: #8D97C4;
    border-color: #8D97C4;
    color: white;
    padding: 0.6rem .8rem;
    border-radius: 8px !important;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-attach:hover {
    background-color: #7a85b0;
    border-color: #7a85b0;
    color: white;
}

.btn-submit {
    background-color: #2D5698;
    border-color: #2D5698;
    color: white;
    padding: 0.6rem .8rem;
    border-radius: 5px !important;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    border-radius: 12px;
    font-weight: 600;
    /* padding: 0.75rem 1.5rem; */
    transition: var(--transition-base);
}

.btn-primary-arabela {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: .2rem .7rem;
}

.btn-primary-arabela:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   Formacion
   ============================================ */

.servicio-title {
    position: relative;
    padding-left: 20px;
}

.servicio-title::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
}


/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--bg-blue-arabela);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.footer-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.social-link {
    color: var(--white);
    transition: var(--transition-base);
    display: inline-block;
}

.social-link:hover {
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================
   Utility Classes
   ============================================ */
/* Additional spacing utilities */
.mt-section {
    margin-top: 5rem;
}

.mb-section {
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .mt-section {
        margin-top: 3rem;
    }

    .mb-section {
        margin-bottom: 3rem;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 576px) {

    /* Extra small devices */
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {

    .navbar,
    .footer,
    .btn {
        display: none;
    }

    body {
        padding-top: 0;
    }
}