/* 
 * ContaEspaña - Main Stylesheet
 * Color Palette:
 * - Background: #FAFAED (soft pastel olive)
 * - Accent: #F75850 (bright coral red)
 * - Secondary: #2B3A42 (deep anthracite)
 * - Additional accent: #FFD93D (sunny yellow)
 * - Buttons: gradient from #F75850 to #FFD93D
 * - Font: 'Poppins', sans-serif
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* Para evitar que los encabezados se oculten bajo el header fijo */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FAFAED;
    color: #2B3A42;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #F75850, #FFD93D);
    border-radius: 2px;
    transform: translateX(-50%);
}

section {
    padding: 5rem 0 3rem;
}

section:target {
    padding-top: 7rem;
    margin-top: -2rem;
}

/* Headers in sections should have enough space */
section h2:first-child {
    padding-top: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #F75850;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFD93D;
}

ul {
    list-style-type: none;
}

.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(to right, #F75850, #FFD93D);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(247, 88, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(247, 88, 80, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.center-align {
    text-align: center;
}

/* Header Styles */
.site-header {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
}

.main-nav .nav-menu {
    display: flex;
}

.main-nav .nav-menu li {
    margin-left: 2rem;
}

.main-nav .nav-menu a {
    color: #2B3A42;
    font-weight: 500;
    position: relative;
}

.main-nav .nav-menu a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #F75850;
    transition: width 0.3s ease;
}

.main-nav .nav-menu a:hover:after {
    width: 100%;
}

.btn-contact {
    padding: 8px 20px;
    background-color: #F75850;
    color: white !important;
    border-radius: 50px;
}

.btn-contact:hover {
    background-color: #FFD93D;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #2B3A42;
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    padding-top: 100px;
    background: linear-gradient(rgba(250, 250, 237, 0.9), rgba(250, 250, 237, 0.9)), url('../img/HBmGlP.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #2B3A42;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-header {
    background: linear-gradient(to right, #F75850, #FFD93D);
    padding: 1.5rem;
    color: white;
}

.service-content {
    padding: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
}

.service-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #F75850;
}

/* Benefits Section */
.benefits {
    background-color: #2B3A42;
    color: white;
}

.benefits h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFD93D;
}

/* Testimonials Section */
.testimonials-slider {
    margin-top: 3rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info {
    line-height: 1.4;
}

.testimonial-author-info strong {
    display: block;
    color: #2B3A42;
}

/* FAQ Section - PHP version */
.faq {
    background-color: white;
    padding-top: 6rem; /* Espacio extra para evitar colisión con el header */
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1.5rem;
    background-color: #f9f9f9;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2B3A42;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background-color: #F75850;
    transition: all 0.3s ease;
}

.faq-icon:before {
    width: 2px;
    height: 20px;
    top: 0;
    left: 9px;
}

.faq-icon:after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
}

.faq-item.active .faq-icon:before {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    background-color: white;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
}

/* Contact Form */
.contact {
    background: linear-gradient(rgba(250, 250, 237, 0.9), rgba(250, 250, 237, 0.9)), url('../img/Tw766A.jpg');
    background-size: cover;
    background-position: center;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #F75850;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: #2B3A42;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: #FFD93D;
    margin-bottom: 1.5rem;
}

.contact-info li,
.legal-links li {
    margin-bottom: 1rem;
}

.legal-links a {
    color: #ddd;
}

.legal-links a:hover {
    color: #FFD93D;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ddd;
}

/* Cookie Banner */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(43, 58, 66, 0.95);
    padding: 1.5rem;
    color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

/* Legal Pages */
.legal-page {
    padding-top: 100px;
    min-height: 100vh;
}

.legal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thank-you-icon {
    font-size: 5rem;
    color: #F75850;
    margin-bottom: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-form {
        width: 100%;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
} 

.rounded-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-height: 400px;
    object-fit: cover;
}

.benefits-image, .services-image {
    margin-bottom: 3rem;
} 

/* Form error message */
.form-error {
    background-color: rgba(247, 88, 80, 0.1);
    border-left: 4px solid #F75850;
    color: #F75850;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
} 