/* Global Styles */
body {
    font-family: 'fonnts.com Bilo_Medium 5kDllcs0002RKb3NBElpkg', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'BebasNeueBold 7B9LE f7BPvCPs9r1zsndrnGwrsQ', sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@font-face {
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg';
    src: url('../images/0/16277370/fonnts.com-Bilo_Black-00ctQAvE0mfcOlCfNRnuKg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Header */
header {
    background: linear-gradient(90deg, #4c6ef5 0%, #3b5bdb 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    display: block;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.nav-menu a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: #000927;
    background-image: url('../images/0,1921x591+0+64/17350078/Recurso69-n6NZu96PXlycTJD_nv9ukQ.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 600px;
    min-height: 550px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-content {
    width: 50%;
    padding-left: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
}

.hero-content .phone {
    color: #ff7e5f;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500px;
    color: #a7e2ff;
}

/* Programas Section */
.programas {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.programas h2 {
    color: #4c6ef5;
    font-size: 3.5rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.program-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.program-card:hover img {
    transform: scale(1.05);
}

.program-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,9,39,0.95) 0%, rgba(0,9,39,0.7) 70%, transparent 100%);
    padding: 30px 20px;
    color: white;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 60%;
}

.program-overlay h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Banner Section */
.banner-humanizacion-new {
    background-color: #000927;
    background-image: url('../images/1920/17209150/Banner1-b0zLv-aK2SOTbrymMZ5l2A.webp') !important;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 500px;
}

.banner-text {
    width: 50%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.banner-text h2 {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: normal;
    color: white !important;
    font-family: 'fonnts.com Bilo_Medium 5kDllcs0002RKb3NBElpkg', sans-serif;
}

.banner-text h2 strong {
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
    font-weight: normal;
    color: white !important;
}

/* Sedes Section */
.sedes {
    padding: 80px 0;
    text-align: center;
    background-color: white;
}

.sedes h2 {
    color: #4c6ef5;
    font-size: 3.5rem;
    margin-bottom: 50px;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
    text-transform: uppercase;
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.sede-card {
    background: white;
    border-radius: 20px;
    border: 2px solid #4c6ef5;
    box-shadow: 0 0 10px rgba(76, 110, 245, 0.5);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Ensure border is included in size */
}

.sede-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(76, 110, 245, 0.8);
}

/*.sede-card img { -- Moved below for specificity */
.sede-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01); /* Crop edges slightly to remove artifacts */
    transition: transform 0.5s;
}

.sede-card:hover img {
    transform: scale(1.05);
}

/* .sede-card:hover img removed here as it is handled by the rule above */

.sede-hours {
    margin-top: 10px;
}

.sede-hours strong {
    display: block;
    color: #4c6ef5;
    font-size: 1rem;
    margin-bottom: 5px;
    margin-top: 20px;
    font-weight: bold;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
}

.sede-hours strong:first-child {
    margin-top: 0;
}

.sede-hours span {
    display: block;
    color: #000927;
    font-size: 0.95rem;
    font-weight: normal;
    margin-bottom: 5px;
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 80px 0;
}

.contact-container {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 1;
    background: #eaf6ff;
    padding: 40px;
    border-radius: 20px;
    min-width: 300px;
    position: relative;
}

.contact-form-wrapper h2 {
    color: #4c6ef5;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    background-color: #dce6eb;
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
    font-size: 0.95rem;
    color: #333;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: #7f8c8d;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: bold;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #4c6ef5;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    text-transform: uppercase;
}

.contact-form button[type="submit"]:hover {
    background-color: #3b5bdb;
}

.contact-info {
    flex: 1;
    padding-top: 20px;
    min-width: 300px;
}

.contact-info h3 {
    color: #4c6ef5;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
    text-transform: uppercase;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
    color: #000927;
}

.contact-item p {
    margin: 0;
    color: #000927;
    line-height: 1.5;
    font-weight: bold;
}

.contact-item strong {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-info hr {
    border: none;
    border-top: 2px solid #4c6ef5;
    margin: 30px 0;
    width: 100%;
}

/* Captcha Styles */
.captcha-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.captcha-display {
    background: #e0e0e0;
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #333;
    user-select: none;
    background-image: repeating-linear-gradient(
        45deg,
        #e0e0e0,
        #e0e0e0 10px,
        #d0d0d0 10px,
        #d0d0d0 20px
    );
    border: 1px solid #ccc;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.1);
    transform: skewX(-5deg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.captcha-display span {
    display: inline-block;
    transform: rotate(2deg);
}

.captcha-container input {
    flex: 1;
    margin-bottom: 0 !important;
    min-width: 0;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #4c6ef5;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: transform 0.3s;
}

.captcha-refresh:hover {
    transform: rotate(180deg);
}

/* Footer */
footer {
    background-color: #000927;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 40px;
}

.footer-links p, .footer-links a {
    color: white;
    margin: 15px 0;
    font-size: 0.9rem;
    display: block;
    font-family: 'fonnts.com Bilo_Black 00ctQAvE0mfcOlCfNRnuKg', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-label {
    color: #4c6ef5;
}

.footer-links a:hover {
    color: #4c6ef5;
}

.footer-social {
    margin-top: 40px;
    margin-bottom: 40px;
}

.footer-social a {
    color: white;
    font-size: 2.5rem;
    margin: 0 20px;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.footer-social a:hover {
    color: #4c6ef5;
    transform: scale(1.1);
}

.copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: white;
    border-top: 1px solid #4c6ef5;
    padding-top: 30px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-family: 'fonnts.com Bilo_Medium 5kDllcs0002RKb3NBElpkg', sans-serif;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero {
        text-align: center;
        padding-top: 60px;
        background-position: center;
    }
    
    .hero-container {
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .banner-humanizacion-new {
        background-position: 20% center;
        justify-content: center;
    }
    
    .banner-text {
        width: 100%;
        padding: 40px 20px;
        text-align: center;
        background: rgba(0, 9, 39, 0.7);
        justify-content: center;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
}
