:root {
    --primary-color: #45b3ab; /* Turquesa */
    --secondary-color: #fdb813; /* Amarillo para acentos */
    --light-gray: #f4f4f4;
    --dark-text: #333333;
    --white: #ffffff;
    --font-headings: 'Lora', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--dark-text);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.4rem;
    color: var(--dark-text);
}

section {
    padding: 60px 20px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/hoover.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

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

.hero h1 {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-text);
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #ffc94a;
    transform: translateY(-3px);
}

/* Sections Styling */
.intro {
    background-color: var(--white);
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.includes {
    background-color: var(--light-gray);
}

.include-items {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.include-items .item {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: 400px;
}

.item ul {
    padding-left: 20px;
}

.item li {
    margin-bottom: 10px;
}

.item-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.benefits {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.benefits-img {
    max-width: 500px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.benefits ul {
    list-style-type: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.benefits li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.offer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.offer h2, .offer h3 {
    color: var(--white);
}

.offer-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    margin: 40px auto;
}

.offer-details ul {
    text-align: left;
    list-style-type: none;
    padding: 0;
}

.price {
    background-color: var(--white);
    color: var(--dark-text);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.price p {
    margin: 5px 0;
}


.how-to-buy {
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.how-to-buy ol {
    display: inline-block;
    text-align: left;
    margin: 30px auto;
}

.how-to-buy .note {
    font-style: italic;
    color: #555;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-text);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer p:last-of-type {
    margin-top: 10px;
}

footer a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

footer span {
    color: var(--white);
}


/* Legal Pages Specific Styles */
.legal-page {
    background-color: var(--white); /* Match index.html body */
    color: var(--dark-text); /* Match index.html body */
}

.legal-main-content {
    max-width: 960px; /* Standard container width */
    margin: 0 auto; /* Center content */
    padding: 60px 20px; /* Standard padding */
}

/* Adjustments for legal page header to position back link */
.legal-main-content .legal-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Align items vertically in the middle */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    margin-bottom: 20px; /* Space before the subtitle */
}

.legal-main-content .legal-title {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0; /* Remove default margin */
    text-align: left; /* Ensure title is left-aligned in flex container */
    flex-grow: 1; /* Allow title to take up available space */
}

/* Style for the subtitle paragraph */
.legal-main-content .legal-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #555; /* A slightly darker gray */
    text-align: center; /* Keep subtitle centered below the header */
    margin-bottom: 40px; /* Space before article starts */
    display: block; /* Ensure it takes full width below the header */
    width: 100%; /* Take full width */
}

.legal-main-content h2,
.legal-main-content h3 {
    text-align: left; /* Default for legal text */
    color: var(--primary-color);
}

.legal-main-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
}

.legal-main-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-main-content p,
.legal-main-content ul,
.legal-main-content ol {
    margin-bottom: 1em;
    line-height: 1.7;
}

.legal-main-content ul,
.legal-main-content ol {
    padding-left: 20px;
}

.legal-main-content li {
    margin-bottom: 0.5em;
}

/* Specific styling for the highlight-box from original legal pages */
.legal-main-content .highlight-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}

.legal-main-content .highlight-box h2 {
    color: var(--dark-text);
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    font-size: 1.5rem;
}

/* Ensure links inside legal content are styled */
.legal-main-content a {
    color: var(--primary-color);
    text-decoration: underline;
}
.legal-main-content a:hover {
    text-decoration: none;
}

/* Back to Home Link */
.back-to-home-link {
    margin-bottom: 0; /* Remove default margin from paragraph */
    flex-shrink: 0; /* Prevent link from shrinking */
    padding-left: 20px; /* Add some space if it's right next to title */
    text-align: right; /* Ensure text aligns right within its flex item */
}

.back-to-home-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.back-to-home-link a:hover {
    color: var(--dark-text);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-main-content .legal-header {
        flex-direction: column; /* Stack title and link vertically */
        align-items: flex-start; /* Align title and link to the start */
        margin-bottom: 15px;
    }
    .legal-main-content .legal-title {
        margin-bottom: 10px; /* Space between title and link when stacked */
        font-size: 2rem; /* Adjust font size for mobile */
    }
    .legal-main-content .back-to-home-link {
        padding-left: 0; /* Remove extra padding on mobile */
        margin-bottom: 15px; /* Space below link when stacked */
        text-align: left; /* Align left when stacked */
    }
    .legal-main-content .legal-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 60vh;
    }

    .include-items {
        flex-direction: column;
    }

    .offer-details {
        flex-direction: column;
    }
}
