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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, #6CC4BC 30%, #b7e8e3 70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

/* Header */
header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

nav a.active {
    background: white;
    color: #6CC4BC;
    padding: 10px 20px;
    border-radius: 20px;
    /* Pill shape */
}

.search-bar {
    position: relative;
    width: 200px;
}

.search-bar input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid white;
    background: transparent;
    color: white;
    outline: none;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

/* Main Content */
main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    padding: 40px 0;
}

.view {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Buttons */
.btn-primary {
    background-color: #3EB6B0;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section 1: Inicio */
.inicio-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-graphic {
    flex: 1;
    position: relative;
}

.hero-graphic img {
    max-width: 100%;
    height: auto;
}

.family-image {
    flex: 1;
    position: relative;
}

.family-image img {
    max-width: 100%;
    border-radius: 10px;
    /* Optional */
}

.cta-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Ornaments */
.ornament {
    position: absolute;
    width: 60px;
    z-index: 5;
}

.ornament-1 {
    top: -20px;
    left: -20px;
}

.ornament-2 {
    bottom: 20px;
    right: 50px;
}

.ornament-3 {
    top: 10px;
    right: -10px;
}

.ornament-4 {
    bottom: -10px;
    left: 20px;
}

/* Section 2: Formulario */
.form-content {
    max-width: 900px;
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 48px;
    color: black;
}

.form-header h2 span {
    font-weight: 400;
}

.ornament-title {
    width: 60px;
    margin-left: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.form-group label {
    font-weight: 700;
    margin-bottom: 5px;
    color: black;
}

.form-group input {
    padding: 15px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-size: 16px;
    outline: none;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.checkboxes {
    margin-bottom: 30px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    user-select: none;
    color: black;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: transparent;
    border: 2px solid white;
}

.checkbox-container input:checked~.checkmark {
    background-color: white;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid #3EB6B0;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.ornament-form {
    position: absolute;
    bottom: 50px;
    left: -50px;
    width: 80px;
}

/* Section 3: Agradecimiento */
.thank-you-content {
    text-align: center;
    position: relative;
    padding: 50px 0;
}

.thank-you-content h1 {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 30px;
    color: black;
}

.ornament-ty-1 {
    position: absolute;
    top: -20px;
    left: 20%;
    width: 80px;
}

.ornament-ty-2 {
    position: absolute;
    bottom: 20px;
    right: 20%;
    width: 80px;
}

.legal-text {
    margin-top: 50px;
    font-size: 12px;
    color: #333;
}

/* Section 4: Promo */
.promo-content {
    text-align: center;
    position: relative;
}

.promo-text h2 {
    font-size: 60px;
    line-height: 1;
    color: black;
}

.promo-badge {
    background: white;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 30px;
    margin-top: 10px;
    color: black;
}

.promo-visuals {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    position: relative;
}

.giftcard-img {
    width: 300px;
    transform: rotate(-10deg);
}

.tv-placeholder {
    width: 300px;
    height: 180px;
    background: #111;
    border: 5px solid #333;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00f, #f0f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-banner {
    background: white;
    padding: 20px;
    border-radius: 50px;
    display: inline-block;
    width: 80%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.promo-banner h3 {
    color: #3EB6B0;
    font-size: 36px;
    margin-bottom: 5px;
}

.promo-banner p {
    font-size: 24px;
    color: black;
}

/* Footer */
footer {
    background: white;
    padding-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 50px;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.link-column h4 {
    margin-bottom: 15px;
    font-weight: 700;
}

.link-column a {
    display: block;
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    background: #3EB6B0;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.footer-bottom {
    background: #3EB6B0;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full screen overlay */
    background-color: white;
    /* White background as per design */
    z-index: 1000;
    padding: 20px;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-header .logo img {
    height: 50px;
}

.close-menu {
    font-size: 24px;
    color: #3EB6B0;
    /* Teal color for X */
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align right as per screenshot */
    gap: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: black;
    font-size: 20px;
    font-weight: 700;
}

.mobile-nav-links li:last-child {
    border-top: 2px solid #3EB6B0;
    /* Teal underline/separator style from screenshot */
    padding-top: 10px;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        /* Keep row for mobile header */
        align-items: center;
        justify-content: space-between;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        display: none;
        /* Hide nav links */
    }

    .hamburger-menu {
        display: block;
    }

    .search-bar {
        width: 150px;
        /* Smaller search bar */
    }

    /* Inicio Section Mobile */
    .inicio-content {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-graphic {
        order: 1;
        margin-bottom: 20px;
        z-index: 2;
    }

    .family-image {
        order: 2;
        width: 100%;
        margin-bottom: 60px;
        /* Space for button */
    }

    .cta-container {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        z-index: 10;
        margin-top: 0;
    }

    .btn-primary {
        width: 100%;
        padding: 15px 20px;
        font-size: 20px;
    }

    /* Ornaments Mobile Positioning */
    .ornament-1 {
        top: -10px;
        left: 10px;
        width: 50px;
    }

    .ornament-2 {
        top: 50px;
        right: 10px;
        width: 60px;
    }

    .ornament-3 {
        bottom: 100px;
        left: 20px;
        width: 70px;
    }

    /* Near sofa */
    .ornament-4 {
        display: none;
    }

    /* Hide extra ornament */

    /* Form Section Mobile */
    .form-content {
        padding: 0 20px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .form-header h2 {
        font-size: 36px;
        line-height: 1.1;
    }

    .ornament-title {
        position: absolute;
        top: 0;
        right: 20px;
        width: 80px;
        margin: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
        /* Stack fields */
        gap: 15px;
    }

    .form-actions {
        justify-content: space-between;
        gap: 10px;
    }

    .form-actions button {
        flex: 1;
        font-size: 18px;
        padding: 12px;
    }

    .ornament-form {
        bottom: 10px;
        left: 10px;
        width: 60px;
    }

    /* Thank You Section Mobile */
    .thank-you-content h1 {
        font-size: 48px;
        margin-top: 50px;
    }

    .ornament-ty-1 {
        top: 20px;
        left: 20px;
    }

    .ornament-ty-2 {
        bottom: 100px;
        right: 20px;
    }

    /* Promo Section Mobile */
    .promo-text h2 {
        font-size: 40px;
    }

    .promo-badge {
        font-size: 24px;
    }

    .promo-visuals {
        flex-direction: column;
        gap: 20px;
    }

    .giftcard-img {
        width: 250px;
    }

    .tv-placeholder {
        width: 280px;
        height: 160px;
    }

    .promo-banner {
        width: 100%;
        border-radius: 20px;
        padding: 15px;
    }

    .promo-banner h3 {
        font-size: 24px;
    }

    .promo-banner p {
        font-size: 18px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-links {
        flex-direction: row;
        /* Keep columns side-by-side if they fit, or wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}