:root {
    --primary-color: #2c5282;
    --primary-dark: #1e3a5f;
    --primary-light: #3d5a80;
    --secondary-color: #ff8c42;
    --secondary-light: #ffa742;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --text-color: #2d3748;
    --border-color: #e2e8f0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(44, 82, 130, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(44, 82, 130, 0.15);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 8px 4px;
    transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

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

.btn-nav-cta {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    opacity: 0.8;
    box-shadow: 0 6px 25px rgba(255, 140, 66, 0.4);
}

.btn-nav-cta::after {
    display: none !important;
}

.main-content .navbar .nav-links a {
    color: white;
}

.main-content .navbar .nav-links a::after {
    background: var(--secondary-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Menu Fullscreen */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.mobile-nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.35s; }

.mobile-nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--secondary-color);
}

.btn-mobile-cta {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 16px 40px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.4s, background 0.3s ease;
}

.mobile-menu.active .btn-mobile-cta {
    opacity: 1;
    transform: translateY(0);
}

.btn-mobile-cta:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    flex: 1;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 80px;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    animation: slideInLeft 0.8s ease-out;
    color: white;
    padding-right: 40px;
}

.hero-text h1 {
    font-size: 70px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
    color: white;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 19px;
    margin-bottom: 48px;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 520px;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 12px;
}

@media (max-width: 1000px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 140, 66, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* HERO IMAGES */
.hero-images {
    flex: 0 0 500px;
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 500px;
    animation: slideInRight 0.8s ease-out;
}

.image-card {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.card-1 {
    width: 56%;
    height: 90%;
    top: 10%;
    left: 0;
    z-index: 2;
    box-shadow: 0 20px 48px rgba(44, 82, 130, 0.16);
}

.card-2 {
    width: 56%;
    height: 90%;
    top: 0;
    right: 0;
    z-index: 1;
    box-shadow: 0 20px 48px rgba(255, 140, 66, 0.12);
}

/* ANIMATIONS */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* MAIN CONTENT */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* FOOTER */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 0;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--secondary-light);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-light);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
}

.developed-by a {
    color: #ff8c42;
    text-decoration: underline;
    transition: var(--transition);
}

.developed-by a:hover {
    color: #fff;
    text-decoration: underline;
}

/* BUTTONS */
.cta-button,
.btn-submit {
    background: var(--secondary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover,
.btn-submit:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

/* Desktop - row layout */
@media (min-width: 1025px) {
    .hero-content {
        justify-content: space-between;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar-container {
        padding: 12px 24px;
    }

    .logo img {
        height: 40px;
    }

    .hero-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 50px;
        padding: 50px 40px;
    }

    .hero-text {
        flex: 1 1 auto;
        max-width: 100%;
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 46px;
        margin-bottom: 28px;
    }

    .hero-text p {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-images {
        flex: 0 0 auto;
        width: 100%;
        max-width: 450px;
        height: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
    .hamburger span {
        background: var(--primary-color);
    }

    .hero {
        padding-top: 60px;
    }

    .hero-content {
        padding: 50px 28px;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 38px;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .hero-text p {
        font-size: 17px;
        margin-bottom: 36px;
        line-height: 1.7;
    }

    .hero-images {
        max-width: 350px;
        height: 280px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-images {
        max-width: 350px;
        height: 280px;
    }

    .card-1 {
        width: 52%;
        height: 85%;
        top: 12%;
    }

    .card-2 {
        width: 52%;
        height: 85%;
        top: 3%;
    }

    .page-header {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }

    .logo img {
        height: 35px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .logo-text {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .hero-content {
        padding: 40px 20px;
        gap: 32px;
    }

    .hero-text h1 {
        font-size: 30px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-images {
        max-width: 280px;
        height: 220px;
        margin: 0 auto;
    }

    .card-1 {
        width: 50%;
        height: 82%;
        top: 15%;
        left: 5%;
    }

    .card-2 {
        width: 50%;
        height: 82%;
        top: 3%;
        right: 5%;
    }

    .image-card {
        border-radius: 12px;
    }
}

/* Extra pequeño - ajuste adicional */
@media (max-width: 360px) {
    .hero-images {
        max-width: 240px;
        height: 190px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .card-1,
    .card-2 {
        width: 48%;
        height: 80%;
    }
}