@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --bg-color: #FDFCF8;
    --primary-color: #1F4E3A;
    --secondary-color: #B8860B;
    /* A bit more readable than pure gold */
    --text-color: #1A1A1A;
    --text-muted: #4A4A4A;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --accent-light: #E9F0ED;

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;

    --container-width: 1100px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 16px 32px; /* Slightly larger padding */
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    font-size: 1.05rem; /* Slightly larger font */
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #1F4E3A; /* Dark green solid as requested */
    color: var(--white);
    box-shadow: 0 4px 14px rgba(31, 78, 58, 0.2);
}

.btn-primary:hover {
    background-color: #163a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

/* Header */
header {
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

header.scrolled {
    background-color: #FAF8F3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    header .container {
        height: auto;
        padding-top: 16px;
        padding-bottom: 16px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 16px;
    }
    nav {
        width: 100%;
        max-width: 320px;
    }
    nav ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }
    nav a {
        font-size: 0.9rem;
        font-weight: 500;
    }
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: flex-start; /* Lifted up from center */
    padding-top: 8vh; /* Positioned slightly higher for better visual balance */
    gap: 40px;
    height: calc(100vh - 100px);
    min-height: 500px;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    max-width: 700px;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 500; /* More weight for prominence */
    color: var(--text-color); /* Darker for better contrast */
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    position: relative;
}

.mockup-container {
    background: #eee;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 20px;
        height: auto;
        min-height: calc(100vh - 100px);
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
        font-size: 1.1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Problema */
.problem {
    background-color: var(--accent-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.problem-card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.problem-card p {
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }
}

/* Servicios */
.services h2 {
    text-align: center;
    margin-bottom: 60px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    display: flex;
    gap: 20px;
}

.service-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.service-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-text p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Precios */
.pricing {
    background-color: #f5f5f0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 50px auto 30px;
}

.pricing-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-card h3 {
    margin-bottom: 0.5rem;
}

.pricing-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features i {
    color: var(--primary-color);
    margin-top: 4px;
}

.pricing-card.disabled {
    opacity: 0.7;
}

.pricing-card.disabled .price,
.pricing-card.disabled h3,
.pricing-card.disabled .pricing-features {
    color: #888;
}

.pricing-footer {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Proceso */
.steps {
    max-width: 800px;
    margin: 50px auto 0;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -40px;
    width: 1px;
    background: var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* Sobre mí */
.about {
    background-color: #FAF8F3;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.about-content {
    max-width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        order: 2;
    }
    .about-content {
        order: 1;
    }
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-answer {
    padding-bottom: 25px;
    display: none;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Contacto */
.contact-section {
    background-color: #F9F3EB;
    /* Warmer tone */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.rgpd-text {
    font-size: 12px;
    color: #6B6B6B;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 16px;
}

.rgpd-text a {
    color: #1F4E3A;
    text-decoration: none;
}

.rgpd-text a:hover {
    text-decoration: underline;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-method i,
.contact-method svg {
    color: var(--primary-color);
    font-size: 1.4rem;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    padding: 60px 20px 30px;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-muted);
}
