/* Variables CSS */
:root {
    --primary-red: #C00000;
    --primary-red-dark: #A00000;
    --primary-red-light: #E00000;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-red);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-light);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
}

.info-item .icon {
    width: 16px;
    height: 16px;
    color: var(--primary-red);
}

/* Navbar */
.navbar {
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
}

.logo-subtext {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(252, 247, 247, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Highlight */
.services-highlight {
    background-color: var(--bg-white);
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--primary-red);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Section Title */
.section-title {
    font-size: 38px;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title.center {
    text-align: center;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    margin-bottom: 24px;
}

.title-underline.center {
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 18px;
    color: var(--text-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-description {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.8;
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mv-item {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
}

.mv-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-red);
}

.mv-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-red);
    color: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
}

.badge-text {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.95;
}

/* Services Detailed */
.services-detailed {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 60px;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.service-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    font-family: 'Montserrat', sans-serif;
    opacity: 0.3;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--text-gray);
}

.service-features li::before {
    content: '✓';
    color: var(--primary-red);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* Documents Section */
.documents {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.cta-study {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    padding: 48px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
}

.cta-content h3 {
    color: var(--bg-white);
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--bg-white);
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-content .btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-red);
}

.cta-content .btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.document-card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.document-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.document-card.highlight {
    border: 2px solid var(--primary-red);
}

.document-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}

.document-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-red);
    flex-shrink: 0;
}

.document-header h3 {
    font-size: 18px;
    line-height: 1.3;
}

.document-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-gray);
    line-height: 1.6;
}

.document-list li::before {
    content: '•';
    color: var(--primary-red);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.documents-note {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 4px;
}

.documents-note p {
    color: #856404;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-description {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
    background-color: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--bg-white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 110px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 16px;
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-wrapper > .btn-primary {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 400px;
    }

    .section-title {
        font-size: 32px;
    }

    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-number {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .header-info {
        flex-direction: column;
        gap: 12px;
        font-size: 13px;
    }

    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 28px;
        color: #FF0000;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .services-grid,
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .cta-study {
        padding: 32px 24px;
    }

    .cta-content h3 {
        font-size: 24px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}
