/* 
* Hoja de estilos principal para domain.com
* Colores:
* - Indigo: #4B0082 (Principal)
* - Naranja: #FFA500 (Acento)
* - Marfil: #FFFAF0 (Fondo)
* - Negro carbón: #333333 (Texto)
*/

/* Estilos globales y reseteo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Añadido para posicionar los anclajes más arriba */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFAF0;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #4B0082;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFA500;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #4B0082;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFA500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 4rem 0;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #4B0082;
    color: #FFFAF0;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #FFA500;
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #4B0082;
}

.btn-secondary {
    background-color: #FFA500;
    color: #333333;
}

.btn-secondary:hover {
    background-color: #4B0082;
    color: #FFFAF0;
}

/* Header y navegación */
.site-header {
    background-color: #FFFAF0;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
}

.logo-text {
    color: #4B0082;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 1.5rem;
}

.nav-list a {
    font-weight: 600;
}

.btn-nav {
    background-color: #FFA500;
    color: #333333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.btn-nav:hover {
    background-color: #4B0082;
    color: #FFFAF0;
}

.mobile-menu-toggle, 
.mobile-menu-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4B0082;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #FFFAF0 0%, rgba(75, 0, 130, 0.1) 100%);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #4B0082;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-container {
    margin-top: 2rem;
}

/* Sección Sobre Nosotros */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* Sección Servicios */
.services {
    background-color: #f9f5ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #FFFAF0;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card .btn {
    margin-top: 1.5rem;
}

/* Sección Ventajas */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: #FFFAF0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2rem;
    color: #FFA500;
    margin-bottom: 1rem;
    display: block;
}

/* Sección Proceso */
.process {
    background: linear-gradient(135deg, #FFFAF0 0%, rgba(75, 0, 130, 0.1) 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background-color: #FFFAF0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    background-color: #4B0082;
    color: #FFFAF0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

/* Sección Testimonios */
.testimonials {
    background-color: #f9f5ff;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.testimonial {
    background-color: #FFFAF0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    max-width: 350px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 5rem;
    color: #FFA50050;
    position: absolute;
    top: -15px;
    left: 10px;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: bold;
    color: #4B0082;
}

/* Sección FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #FFFAF0;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFAF0;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f5ff;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4B0082;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.faq-open .faq-question {
    background-color: #f9f5ff;
}

/* Sección Contacto y Formulario */
.contact {
    background: linear-gradient(135deg, #FFFAF0 0%, rgba(75, 0, 130, 0.2) 100%);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #FFFAF0;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #FFFAF0 0%, rgba(75, 0, 130, 0.1) 100%);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4B0082;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4B0082;
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
}

.contact-form button {
    grid-column: 1 / -1;
    padding: 1rem;
}

/* Footer */
.site-footer {
    background-color: #4B0082;
    color: #FFFAF0;
    padding-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #FFA500;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #FFA500;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-weight: 600;
    color: #FFA500;
}

.contact-info a {
    color: #FFFAF0;
}

.contact-info a:hover {
    color: #FFA500;
}

.legal-links {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.8rem;
}

.legal-links a {
    color: #FFFAF0;
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: #FFA500;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #4B0082;
    color: #FFFAF0;
    padding: 1rem 2rem;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #FFA500;
    text-decoration: underline;
}

.cookie-consent.hidden {
    display: none;
}

/* Páginas legales */
.legal-page {
    max-width: 900px;
    margin: 4rem auto;
    background-color: #FFFAF0;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.legal-page h2::after {
    left: 0;
    transform: none;
}

.legal-page p, 
.legal-page ul {
    margin-bottom: 1.5rem;
}

.legal-page ul {
    margin-left: 2rem;
}

/* Página de gracias */
.thanks-page {
    text-align: center;
    padding: 5rem 0;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #4B0082;
    position: relative;
}

.thanks-content:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid #FFA500;
    border-radius: 5px;
    pointer-events: none;
}

.thanks-icon {
    font-size: 5rem;
    color: #4B0082;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.thanks-content h1 {
    position: relative;
    z-index: 1;
}

.thanks-content p {
    position: relative;
    z-index: 1;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.thanks-content .cta-container {
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero-subtitle, .cta-container {
    animation: fadeIn 1s ease-out forwards;
}

.hero-subtitle {
    animation-delay: 0.3s;
}

.cta-container {
    animation-delay: 0.6s;
}

/* Media queries para responsive */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #FFFAF0;
        transition: right 0.3s ease;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-container.menu-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 2rem;
        height: 100%;
    }

    .nav-list li {
        margin: 1rem 0;
    }

    .mobile-menu-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .step, .benefit-item, .service-card, .testimonial {
        padding: 1.5rem;
    }

    .service-card img {
        height: 150px;
    }

    .form-container {
        padding: 1.5rem;
    }
}

/* Animations for FAQ section (CSS only) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-open .faq-answer {
    max-height: 500px;
} 