:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-red: #C84327;
    --color-yellow: #E2C341;
    --color-bg-gray: #f9f9f9;
    --font-family: 'Fredoka', 'Segoe UI', sans-serif;
    --border-radius: 12px;
    --color-green: #28a745;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Helpers */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none;
}

/* Buttons */
.btn-primary,
.btn-primary-lg,
.btn-primary-block {
    background-color: var(--color-red);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
    border: 2px solid var(--color-black);
    /* Cartoon stroke */
}

.btn-secondary {
    background-color: var(--color-yellow);
    color: var(--color-black);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-black);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 2px 2px 0px var(--color-black);
}

.btn-primary {
    padding: 10px 20px;
}

.btn-secondary {
    padding: 10px 20px;
}

.btn-primary-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
    display: inline-block;
}

.btn-primary-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Header */
header {
    padding: 20px 0;
    border-bottom: 2px solid var(--color-black);
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-black);
}

.logo i {
    color: var(--color-red);
}

/* Hero */
.hero {
    padding: 60px 0;
    background-color: var(--color-white);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--color-red);
}

.hero-image {
    flex: 1;
    text-align: center;
    font-size: 10rem;
    /* Emoji placeholder size */
}

/* Features */
.features {
    padding: 40px 0;
    background-color: var(--color-bg-gray);
    border-top: 2px solid var(--color-black);
    border-bottom: 2px solid var(--color-black);
}

.features .container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-card {
    flex: 1;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--color-black);
    box-shadow: 4px 4px 0px var(--color-black);
    min-width: 250px;
}

.feature-card i {
    font-size: 2rem;
    color: var(--color-red);
    margin-bottom: 15px;
}

/* Form */
.subscription-section {
    padding: 60px 0;
    background-color: var(--color-yellow);
}

/* Switch CSS */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-red);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-red);
}

input:checked+.slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

.card {
    background: var(--color-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.form-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--color-black);
    box-shadow: 8px 8px 0px var(--color-black);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-black);
    outline: none;
}

.success-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    border: 2px solid #c3e6cb;
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    border: 2px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        display: none !important;
        /* Hide banner on mobile */
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .features .container {
        flex-direction: column;
    }

    /* Use yellow bg for form section on mobile and remove card style to just blend or keep card?
           Request: "form en la seccion amarilla" -> Make the section yellow.
           Current .subscription-section color is --color-bg-gray.
        */
    .subscription-section {
        background-color: var(--color-yellow) !important;
        padding: 30px 0;
    }

    /* Make the card white still? Or transparent?
           Usually "form in yellow section" implies the background is yellow.
           The card is white. That works well.
        */
    /* Restore card look but ensure it fits */
    .form-card {
        padding: 20px;
        /* Width 100% was causing overflow, removed. */
    }
}