/* Variables */
:root {
    --primary-color: #cdb4db;
    --secondary-color: #ffc8dd;
    --accent-color: #ffafcc;
    --light-color: #bde0fe;
    --extra-light-color: #a2d2ff;
    --dark-color: #333;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;

    
    /* background-image: url('../images/complex-mocha-2.png'); */
    /* Imagen de complex mocha 2 de fondo fijo y cubriendo toda la pantalla */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-image: url('../images/complex-mocha-2.png');
    background-size: cover;
    background-position: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/complex-mocha-1.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 100;
    /* background-color: rgba(205, 180, 219, 0.8); primary-color with transparency */
    background-color: var(--dark-color);
}

.logo {
    max-width: 150px;
}

.logo img {
    width: 100%;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/* Problem Section */
.problem-section {
    /* background-color: var(--extra-light-color); */
    /* Gradiente bonito con --extra-light-color */
    background: linear-gradient(135deg, var(--extra-light-color), var(--primary-color));
    /* color: var(--dark-color); */
}

.story-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.story-image {
    flex: 1;
    min-width: 300px;
}

.story-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.story-content {
    flex: 2;
    min-width: 300px;
}

.benefits-list {
    list-style-type: none;
    margin: 2rem 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.icon {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Solution Section */
.solution-section {
    background-color: #fff;
}

.ingredients-container {
    max-width: 80vw;
    margin: 0 auto;
}

.ingredients-container h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.ingredient-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--light-color);
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.ingredient-image {
    height: 200px;
    overflow: hidden;
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ingredient-card:hover .ingredient-image img {
    transform: scale(1.05);
}

.ingredient-card h4 {
    padding: 1rem;
    color: var(--dark-color);
    font-size: 1.2rem;
    background-color: var(--light-color);
    margin-bottom: 0;
}

.ingredient-card p {
    padding: 1rem;
    color: var(--text-color);
}

.highlight-text {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(205, 180, 219, 0.1);
}

/* Product Info Section */
.product-info {
    background-color: var(--light-color);
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 4px solid white;
}

.features-list {
    flex: 1;
    min-width: 300px;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(10px);
}

.feature-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--accent-color);
}

.feature h4 {
    margin-bottom: 0.5rem;
}

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
}

.testimonial blockquote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    color: var(--secondary-color);
    opacity: 0.3;
}

.testimonial cite {
    font-weight: 600;
    display: block;
    text-align: right;
}

/* Comparison Section */
.comparison-section {
    /* background-color: #fff; */
    /* Imagen de fondo complex-mocha-png*/

    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.39) 1%, rgba(0, 0, 0, 0.57) 100%);
    color: white;
    
}

.comparison-table {
    max-width: 800px;
    margin: 3rem auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-header {
    display: flex;
    background-color: var(--primary-color);
    color: #fff;
}

.comparison-row {
    display: flex;
}

.comparison-row:nth-child(even) {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.comparison-row:nth-child(odd) {
    background-color: #fff;
    color: var(--dark-color);
}

.column {
    padding: 1rem;
    flex: 1;
}

.column.empty {
    flex: 0.5;
}

.column.complex {
    background-color: rgba(255, 175, 204, 0.1); /* accent-color with transparency */
}

.column.competitor {
    background-color: rgba(205, 180, 219, 0.1); /* primary-color with transparency */
}

.cta-text {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 2rem;
    color: var(--dark-color);
}

/* Transformation Section */
.transformation-section {
    background-color: var(--extra-light-color);
    padding: 5rem 0;
}

.transformation-story {
    max-width: 800px;
    margin: 0 auto;
}

.before-after {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.before, .after {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.before {
    border-left: 5px solid var(--secondary-color);
}

.after {
    border-left: 5px solid var(--primary-color);
}

.before h4, .after h4 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.before ul, .after ul {
    list-style-type: none;
}

.before ul li, .after ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.before ul li::before, .after ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.transformation-text {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 5rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.cta-section .section-title {
    color: #fff;
}

.cta-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.cta-text, .form-container {
    flex: 1;
    min-width: 300px;
}

.offer-box {
    background-color: #fff;
    color: var(--dark-color);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
}

.offer-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.offer-box ul {
    list-style-type: none;
    margin: 1.5rem 0;
}

.offer-box ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.offer-box ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.guarantee {
    font-style: italic;
    margin-top: 1.5rem;
    font-weight: 600;
}

.form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    color: var(--dark-color);
}

.form-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 175, 204, 0.3);
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.privacy-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.privacy-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}

.tachado {
    text-decoration: line-through;
    color: var(--secondary-color);
}

/* Mensaje de gracias después de enviar formulario */
.thank-you-message {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
    max-width: 90%;
    width: 400px;
    visibility: hidden;
}

.thank-you-message h2 {
    margin-bottom: 1rem;
    color: white;
}

.thank-you-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    transform: scale(1.2);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Form validation styles */
.form-group.error input {
    border-color: #ff3860;
    box-shadow: 0 0 0 3px rgba(255, 56, 96, 0.1);
}

.error-message {
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

/* Animation for success icon */
.success-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    max-width: 120px;
    margin-bottom: 1rem;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.footer-links ul {
    list-style-type: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.negritas {
    font-weight: 600;
}

.comparison-section h2 {
    color: white;
}

.comparison-section p {
    color: white;
}

#comparison > div > div > div:nth-child(2) > div.column.feature {
    color: var(--dark-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.5s backwards;
}

.pulse {
    animation: pulse 2s infinite;
}

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comparison-header, .comparison-row {
        flex-direction: column;
    }
    
    .column {
        padding: 0.8rem;
    }
    
    .before-after {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}
