/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.acronym {
    font-size: 1rem;
    color: #3498db;
    font-weight: 700;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: url('fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: #333;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: none;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #333;
    color: white;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: white;
    border: 2px solid #333;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: #3498db;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8f9fa;
    position: static;
    transform: none;
    transition: none;
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    position: static;
    transform: none;
    transition: none;
}

.about-text {
    position: static;
    transform: none;
    transition: none;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature i {
    color: #3498db;
    font-size: 1.2rem;
}

.feature span {
    font-weight: 500;
    color: #2c3e50;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: none;
    border: 1px solid #f1f2f6;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.service-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    z-index: 1;
    overflow: hidden;
}

.service-bg-icon {
    width: 100%;
    height: 100%;
    opacity: 0.8;
    object-fit: contain;
    object-position: center;
    transform: scale(1);
    image-rendering: auto;
}

.service-icon-container-font {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-bg-icon-font {
    font-size: 4rem;
    opacity: 0.8;
    color: #3498db;
}

.service-card h3 {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    margin-top: 0;
    font-weight: 600;
}

.service-card p {
    position: relative;
    z-index: 2;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    position: relative;
    z-index: 2;
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Estilos para tarjeta institucional - Actualizado */
.institutional-card {
    background: #ffffff;
    border: 1px solid #2c5aa0;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
    min-height: 700px;
}

.institutional-icon {
    width: 90px;
    height: 90px;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 2rem;
}

.institutional-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.institutional-description {
    color: #5a6c7d;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
    padding: 0 10px;
}

.institutional-features {
    text-align: left;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: #2c5aa0;
    font-weight: bold;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-item span:last-child {
    color: #5a6c7d;
    font-weight: 500;
}

/* Ilustración institucional */
.institutional-illustration {
    margin-top: 2rem;
    text-align: center;
    padding: 3rem 2.5rem;
    background: #ffffff;
    border-radius: 8px;
}

.illustration-image {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 500px;
    min-height: 300px;
    opacity: 0.9;
    object-fit: contain;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #555;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* Location Section */
.location {
    padding: 100px 0;
    background: white;
}

.location .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.location .section-title {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.location .section-subtitle {
    color: #5a6c7d;
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.location-content {
    max-width: 1000px;
    margin: 0 auto;
}

.location-single-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-bottom: 1px solid #e9ecef;
}

.info-section {
    padding: 2rem;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.info-section:last-child {
    border-right: none;
}

.info-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.info-header i {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-header h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.25px;
}

.info-section p {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.location-map {
    background: white;
}

.map-header {
    padding: 1.5rem;
    background: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.map-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: -0.25px;
}

.map-header p {
    margin: 0;
    color: #5a6c7d;
    font-size: 0.9rem;
    font-weight: 400;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #3498db;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #3498db;
    width: 20px;
}

.footer-divider {
    height: 1px;
    background: #34495e;
    margin: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .acronym {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }
    
    .hero-container {
        display: flex;
        justify-content: center;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        width: 100%;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: auto;
        min-width: 200px;
        max-width: 280px;
        text-align: center;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location {
        padding: 80px 0;
    }
    
    .location .section-title {
        font-size: 2rem;
    }
    
    .location .section-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .location-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .info-section {
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .info-section:last-child {
        border-bottom: none;
    }
    
    .map-header {
        padding: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .footer-bottom-content {
        text-align: center;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .service-card,
    .contact-form {
        padding: 2rem 1.5rem;
        min-height: 300px;
        margin: 0 10px;
    }
    
    .institutional-card {
        min-height: 450px;
        padding: 2rem 1.5rem;
        background: #ffffff;
        border: 1px solid #2c5aa0;
    }
    
    .institutional-description {
        font-size: 0.95rem;
        text-align: left;
        padding: 0;
    }
    
    .institutional-features {
        padding: 1.25rem;
        background: #ffffff;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .institutional-illustration {
        margin-top: 1.5rem;
        padding: 2rem 1.5rem;
        background: #ffffff;
    }
    
    .illustration-image {
        max-height: 400px;
        min-height: 250px;
    }
    
    .institutional-card {
        min-height: 600px;
        background: #ffffff;
        border: 1px solid #2c5aa0;
    }
    
    .section-title {
        font-size: 1.6rem;
        padding: 0 20px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 20px;
    }
    
    .about,
    .services,
    .contact {
        padding: 60px 0;
    }
    
    .about-text {
        padding: 0 15px;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .about-text h3 {
        font-size: 1.4rem;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .location {
        padding: 60px 0;
    }
    
    .location .section-title {
        font-size: 1.8rem;
    }
    
    .location .section-subtitle {
        font-size: 0.95rem;
        padding: 0 20px;
    }
    
    .location-content {
        margin: 0 15px;
    }
    
    .info-section {
        padding: 1.25rem;
        text-align: center;
    }
    
    .info-header i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .info-header h3 {
        font-size: 1rem;
    }
    
    .info-section p {
        font-size: 0.9rem;
    }
    
    .map-header {
        padding: 1rem;
    }
    
    .map-header h3 {
        font-size: 1rem;
    }
    
    .map-container {
        height: 300px;
    }
    
    .service-icon-container {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem auto;
    }
    
    .service-icon-container-font {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem auto;
    }
    
    .service-bg-icon-font {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .about,
    .services,
    .contact {
        padding: 60px 0;
    }
}

/* Scroll suave para navegación */
html {
    scroll-behavior: smooth;
}

/* Estados de hover para mejorar UX */
button:hover,
.btn:hover {
    cursor: pointer;
}

/* Accesibilidad */
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Mejoras visuales */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 15px 15px 0 0;
}
