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

:root {
    --primary-color: #8B4513;      /* Marrón chocolate */
    --secondary-color: #D2691E;    /* Naranja chocolate */
    --accent-color: #CD853F;       /* Beige dorado */
    --text-dark: #2C1810;          /* Marrón muy oscuro */
    --text-light: #6B4E3D;        /* Marrón medio */
    --background: #FFF8F0;         /* Crema suave */
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 4px 20px rgba(139, 69, 19, 0.1);
    --shadow-medium: 0 8px 30px rgba(139, 69, 19, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(139, 69, 19, 0.1);
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--gradient);
    margin: 30px auto;
    border-radius: 2px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: -10px;
    top: -2px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.divider::after {
    content: '';
    position: absolute;
    right: -10px;
    top: -2px;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 40px 0;
}

.form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Form Container */
.form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-left: 4px;
}

.form-group input {
    padding: 16px 20px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--background);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.15);
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.submit-btn {
    padding: 18px 30px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Image Section */
.image-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    text-align: center;
    position: relative;
}

.cata-image {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--white);
    transition: var(--transition);
}

.cata-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 12px 40px rgba(139, 69, 19, 0.2);
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 40px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    margin-top: auto;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.separator {
    margin: 0 15px;
    color: var(--text-light);
}

.brand {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 248, 240, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 69, 19, 0.2);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--text-dark);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .form-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .cata-image {
        max-width: 320px;
        height: 240px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .form-group input {
        padding: 14px 16px;
    }
    
    .submit-btn {
        padding: 16px 25px;
        font-size: 1rem;
    }
}

/* Animaciones sutiles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.form-container,
.image-section {
    animation: fadeInUp 0.6s ease-out;
}

.form-container {
    animation-delay: 0.2s;
}

.image-section {
    animation-delay: 0.4s;
} 