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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #E6542D 0%, #D84A2F 50%, #C73E2A 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Elementos decorativos de fondo (detrás del contenedor) */
.bg-decoration {
    position: absolute;
    z-index: 0;
}

.bg-decoration.dots-top {
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 100px;
    opacity: 0.4;
}

.bg-decoration.dots-bottom {
    bottom: 5%;
    left: 8%;
    width: 250px;
    height: 100px;
    opacity: 0.3;
}

.bg-decoration.horizontal-stripe-top {
    top: 15%;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
}

.bg-decoration.horizontal-stripe-bottom {
    bottom: 25%;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.04);
}

/* Contenedor principal crema */
.main-card {
    position: relative;
    overflow: visible;
    width: 85%;
    max-width: 1400px;
    height: 85vh;
    background: #F5EFE6;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Elementos decorativos overlay (dentro del contenedor) */
.overlay-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.overlay-decoration.waves-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 600px;
    opacity: 0.15;
}

.overlay-decoration.topographic-left {
    left: -100px;
    top: 30%;
    width: 350px;
    height: 350px;
    opacity: 0.08;
}

/* Logo */
.logo {
    position: absolute;
    top: 50px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.logo img {
    width: 60px;
    height: 60px;
}

.logo-text {
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 800;
    color: #1a1a1a;
}

/* Sección de texto (centrada verticalmente) */
.text-section {
    position: relative;
    z-index: 10;
    max-width: 550px;
    padding-left: 60px;
}

.text-section h1 {
    font-size: clamp(56px, 6vw, 80px);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-section p {
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 35px;
    line-height: 1.4;
}

/* Formulario */
.email-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.email-form input {
    flex: 1;
    max-width: 320px;
    padding: 16px 24px;
    border: none;
    background: #fff;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.email-form input:focus {
    box-shadow: 0 6px 20px rgba(216, 74, 47, 0.2);
}

.email-form input::placeholder {
    color: #999;
    font-weight: 500;
}

.email-form button {
    padding: 16px 40px;
    border: none;
    background: #D84A2F;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(216, 74, 47, 0.3);
}

.email-form button:hover {
    background: #C73E2A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(216, 74, 47, 0.4);
}

.email-form button:active {
    transform: translateY(0);
}

/* Mockup del iPhone */
.phone-mockup {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.phone-mockup img {
    height: 95vh;
    width: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.3));
}

/* RESPONSIVE */

/* Landscape modo (pantallas cortas) */
@media (max-height: 600px) {
    .phone-mockup img {
        height: 110vh;
    }

    .main-card {
        height: 90vh;
    }

    .logo {
        top: 30px;
        left: 40px;
    }

    .text-section {
        padding-left: 40px;
    }
}

/* Tablets */
@media (max-width: 1200px) {
    .phone-mockup {
        right: -5%;
    }

    .phone-mockup img {
        height: 85vh;
    }

    .text-section {
        max-width: 480px;
    }
}

/* Mobile */
@media (max-width: 968px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .main-card {
        width: 92%;
        height: auto;
        min-height: 70vh;
        padding: 40px 30px;
        margin: 30px 0;
        border-radius: 35px;
        overflow: hidden; /* Sin overflow para contener el mockup */
    }

    .logo {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 40px;
        z-index: 20;
    }

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

    .text-section {
        padding-left: 0;
        max-width: 100%;
        z-index: 20;
    }

    .text-section h1 {
        font-size: 48px;
    }

    .text-section p {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .email-form {
        flex-direction: column;
        gap: 12px;
    }

    .email-form input {
        max-width: 100%;
        width: 100%;
    }

    .email-form button {
        width: 100%;
    }

    /* Mockup como fondo - ocupa todo el contenedor */
    .phone-mockup {
        position: absolute;
        top: 50%;
        left: 16%;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .phone-mockup img {
        width: auto;
        height: 100%;
        object-fit: cover;
        filter: none;
    }

    /* Capa overlay semitransparente sobre el mockup */
    .phone-mockup::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 239, 230, 0.651); /* Color crema con transparencia */
        z-index: 2;
        pointer-events: none;
    }

    .overlay-decoration.waves-right {
        width: 250px;
        opacity: 0.1;
        z-index: 15;
    }

    .overlay-decoration.topographic-left {
        display: none;
    }

    .bg-decoration.dots-bottom {
        display: none;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .main-card {
        width: 95%;
        padding: 30px 20px;
        min-height: 65vh;
    }

    .text-section h1 {
        font-size: 40px;
    }

    .text-section p {
        font-size: 16px;
    }

    .logo-text {
        font-size: 28px;
    }
}
