/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --color-primary: #616163;
    --color-primary-dark: #3e3e40;
    --color-primary-light: #e8e9ec;
    --color-accent: #8b0304;
    --color-accent-dark: #6a0505;
    --color-text: #303030;
    --color-text-light: #616163;
    --color-text-muted: #9fa2a8;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f6;
    --color-bg-dark: #616163;
    --color-bg-footer: #3e3e40;
    --color-border: #e8e9ec;
    --font-main: 'Alegreya Sans', sans-serif;
    --font-alt: 'Roboto', sans-serif;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes preloaderSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloaderPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

[data-aos] { pointer-events: auto; }

/* ========================================
   PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: preloaderSpin 0.9s linear infinite;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-logo {
    max-height: 50px;
    width: auto;
}

.nav-link {
    color: var(--color-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-bg);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-bg);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(97, 97, 99, 0.3);
}

.btn-hero:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 3, 4, 0.4);
}

.programas-grid {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.programs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-box {
    position: relative;
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.program-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(97, 97, 99, 0.2);
    border-color: var(--color-primary);
}

.program-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(97, 97, 99, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.program-box:hover::before {
    left: 100%;
}

.program-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
}

.program-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border-bottom: 3px solid var(--color-border);
    transition: all 0.3s ease;
}

.program-box:hover .program-header {
    border-bottom-color: var(--color-accent);
}

.program-logo-img {
    width: 100%;
    max-width: 190px;
    height: 120px;
    object-fit: contain;
}

.program-header-icon {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
}

.program-icon-circle {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.program-icon-circle i {
    font-size: 2.5rem;
    color: var(--color-bg);
}

.program-body {
    padding: 2rem;
    position: relative;
}

.program-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.program-tagline {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.program-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.external-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--color-accent);
    font-size: 0.875rem;
}

.iso-certification {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f3f0 0%, #fef8f5 100%);
}

.iso-card {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.iso-logo-container {
    padding: 1rem;
}

.iso-logo-img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.iso-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.iso-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-iso {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-bg);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-iso:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 3, 4, 0.3);
    color: var(--color-bg);
}

.about-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: justify;
}

.director-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-light) 100%);
}

.director-card {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-border);
}

.director-photo-wrapper {
    position: relative;
    text-align: center;
}

.director-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.director-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.director-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
}

.director-bio {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-director {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-director:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
    transform: translateX(5px);
}

.btn-director i {
    transition: transform 0.3s ease;
}

.btn-director:hover i {
    transform: translateX(5px);
}

/* ========================================
   TEAM
   ======================================== */

.team-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background: var(--color-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-border);
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-accent);
}

.team-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    flex-shrink: 0;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   PRESS
   ======================================== */

.press-section {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.press-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.press-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.press-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.press-track::-webkit-scrollbar {
    display: none;
}

.press-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
    scroll-snap-align: start;
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--color-border);
    border-top: 4px solid var(--color-accent);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: pressFadeIn 0.6s ease-out both;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
    border-top-color: var(--color-accent);
}

@keyframes pressFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.press-card:nth-child(1) { animation-delay: 0.05s; }
.press-card:nth-child(2) { animation-delay: 0.1s; }
.press-card:nth-child(3) { animation-delay: 0.15s; }
.press-card:nth-child(4) { animation-delay: 0.2s; }
.press-card:nth-child(5) { animation-delay: 0.25s; }
.press-card:nth-child(6) { animation-delay: 0.3s; }
.press-card:nth-child(7) { animation-delay: 0.35s; }
.press-card:nth-child(8) { animation-delay: 0.4s; }
.press-card:nth-child(9) { animation-delay: 0.45s; }
.press-card:nth-child(10) { animation-delay: 0.5s; }

.press-image {
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.press-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.press-card:hover .press-image img {
    transform: scale(1.05);
}

.press-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary-dark);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.press-nav:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.press-nav i {
    font-size: 1.1rem;
}

.press-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.press-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.press-dot.active {
    background-color: var(--color-accent);
}

.press-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.press-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.press-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.press-summary {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.press-source {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-light);
    border-radius: 20px;
    align-self: flex-start;
}

.press-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: 0.9rem;
}

.press-link:hover {
    color: var(--color-accent);
    gap: 0.75rem;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
}

.contact-wrapper {
    background: var(--color-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.contact-info-box {
    padding-right: 2rem;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--color-bg);
    font-size: 1.25rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 500;
}

.contact-value:hover {
    color: var(--color-accent);
}

.contact-form-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label-modern {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control-modern {
    border: 2px solid var(--color-border);
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-alt);
    transition: all 0.3s ease;
    background-color: var(--color-bg-light);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg);
    box-shadow: 0 0 0 4px rgba(97, 97, 99, 0.12);
}

.btn-submit-modern {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-bg);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(130, 36, 40, 0.3);
}

.btn-submit-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

.form-feedback:not(:empty) {
    display: block;
}

.form-feedback.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-feedback.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.footer-simple {
    background-color: #000000;
    color: white;
    padding: 80px 0 40px;
}

.footer-simple p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.footer-heading {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-iso {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
}

.iso-logo {
    height: 60px;
    width: auto;
}

.iso-texto {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    margin: 0;
    line-height: 1.6;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.footer-info strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-info a:hover {
    color: var(--color-accent);
}

.footer-info i {
    font-size: 0.9rem;
}

.footer-programs p {
    margin: 6px 0;
}

.footer-programs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-programs a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-bottom-border {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--color-accent);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */

.scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(130, 36, 40, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(130, 36, 40, 0.4);
}

.scroll-top:active { transform: translateY(-2px); }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .navbar-logo {
        max-height: 45px;
    }

    .hero-banner {
        padding: 70px 0 60px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .programs-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .program-header {
        height: 160px;
        padding: 1.5rem;
    }

    .program-logo-img {
        max-width: 170px;
        height: 100px;
    }

    .program-name {
        font-size: 1.35rem;
    }

    .iso-card {
        padding: 2.5rem 2rem;
    }

    .iso-title {
        font-size: 1.75rem;
    }

    .about-text {
        font-size: 1.125rem;
    }

    .director-photo-wrapper {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .director-photo {
        max-width: 100%;
        width: 100%;
    }

    .director-badge {
        margin-top: 0;
        margin-bottom: 1rem;
        align-self: center;
    }

    .director-name {
        font-size: 1.75rem;
    }

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

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }

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

    .press-carousel {
        max-width: 100%;
    }

    .press-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }

    .press-nav {
        width: 45px;
        height: 45px;
    }

    .press-nav i {
        font-size: 1rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .footer-simple {
        padding: 60px 0 30px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-logo {
        max-height: 40px;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }

    .hero-banner {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
    }

    .programas-grid {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-label {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .programs-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .program-header {
        height: 150px;
        padding: 1.5rem;
    }

    .program-logo-img {
        max-width: 150px;
        height: 90px;
    }

    .program-icon-circle {
        width: 70px;
        height: 70px;
    }

    .program-icon-circle i {
        font-size: 2rem;
    }

    .program-name {
        font-size: 1.25rem;
    }

    .program-tagline {
        font-size: 0.95rem;
    }

    .iso-certification {
        padding: 60px 0;
    }

    .iso-card {
        padding: 2rem 1.5rem;
    }

    .iso-logo-img {
        max-width: 140px;
    }

    .iso-title {
        font-size: 1.5rem;
    }

    .iso-text {
        font-size: 1rem;
    }

    .about-section {
        padding: 60px 0;
    }

    .about-text {
        font-size: 1rem;
        text-align: left;
    }

    .director-section {
        padding: 60px 0;
    }

    .director-card {
        padding: 2rem 1.5rem;
    }

    .director-photo {
        max-width: 100%;
        width: 100%;
    }

    .director-name {
        font-size: 1.5rem;
    }

    .director-bio {
        font-size: 1rem;
    }

    .team-section {
        padding: 60px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .team-card {
        padding: 1.5rem;
    }

    .team-name {
        font-size: 1.15rem;
    }

    .press-section {
        padding: 60px 0;
    }

    .press-carousel {
        max-width: 100%;
        padding-bottom: 50px;
    }

    .press-carousel-wrapper {
        gap: 0.5rem;
    }

    .press-track {
        gap: 1rem;
    }

    .press-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .press-image {
        height: 140px;
    }

    .press-nav {
        width: 40px;
        height: 40px;
    }

    .press-nav i {
        font-size: 0.9rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-wrapper {
        padding: 1.5rem;
    }

    .contact-info-box {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-intro {
        font-size: 1rem;
    }

    .contact-detail-item {
        gap: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .form-label-modern {
        font-size: 0.9rem;
    }

    .form-control-modern {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit-modern {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .footer-simple {
        padding: 50px 0 25px;
    }

    .footer-heading {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .iso-logo {
        height: 50px;
    }

    .iso-texto {
        font-size: 0.85rem;
    }

    .footer-info p,
    .footer-programs a {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }

    .program-box:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .program-box::before {
        display: none;
    }
}
