/* 
* Estilos principales para domain.com
* Diseño adaptativo usando CSS Grid y Flexbox
* Paleta de colores:
* - Primario: #F72585 (fucsia)
* - Secundario: #3A86FF (azul)
* - Fondo: #FAF9F6 (beige claro)
* - Texto: #2B2D42 (gris carbón)
* - Botones: #FFEA00 (amarillo limón)
*/

/* --------- Reset y estilos base --------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #2B2D42;
    background-color: #FAF9F6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #3A86FF;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #F72585;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #2B2D42;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* --------- Botones y elementos de formulario --------- */
.btn, .cookie-btn, button, 
input[type="submit"] {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: #FFEA00;
    color: #2B2D42;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.6rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover, .cookie-btn:hover, 
button:hover, input[type="submit"]:hover {
    background-color: #F72585;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.6rem;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3A86FF;
    box-shadow: 0 0 0 2px rgba(58, 134, 255, 0.2);
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* --------- Header y Navegación --------- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 5rem;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
}

.main-nav li {
    margin: 0 1.5rem;
}

.main-nav a {
    color: #2B2D42;
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F72585;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

.cta-button {
    background-color: #F72585;
    color: white;
    padding: 1rem 1.8rem;
    border-radius: 5px;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #FFEA00;
    color: #2B2D42;
}

.language-selector {
    flex: 0 0 auto;
}

.language-selector select {
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    cursor: pointer;
    background-color: white;
}

/* --------- Hero Section --------- */
.hero {
    text-align: center;
    padding: 12rem 0;
    position: relative;
    overflow: hidden;
    background-image: url('../img/FhGuzT.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(43, 45, 66, 0.7);
    z-index: 1;
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* --------- About Section --------- */
.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    grid-gap: 4rem;
    align-items: center;
}

.about-content h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 8rem;
    height: 3px;
    background-color: #F72585;
}

.about-image {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* --------- Services Section --------- */
.services {
    padding: 8rem 0;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    grid-gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.1);
}

.service-card-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    color: #3A86FF;
    margin-bottom: 1.5rem;
}

.service-card-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: #F72585;
    margin: 2rem 0;
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* --------- Features Section --------- */
.features {
    padding: 8rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    flex: 0 0 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
}

.feature-icon {
    margin: 0 auto 2rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(247, 37, 133, 0.1);
    border-radius: 50%;
    color: #F72585;
    font-size: 3.6rem;
}

.feature h3 {
    margin-bottom: 1.5rem;
}

.features-image {
    margin: 5rem auto 0;
    max-width: 60rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* --------- Contact Form --------- */
.contact {
    padding: 8rem 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-form-container {
    max-width: 60rem;
    margin: 0 auto;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background: linear-gradient(to right, #F72585, #3A86FF);
}

.form-error {
    color: #F72585;
    font-weight: 600;
    margin-bottom: 2rem;
    border-left: 3px solid #F72585;
    padding-left: 1rem;
}

/* --------- Testimonials Section --------- */
.testimonials {
    padding: 8rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    grid-gap: 3rem;
}

.testimonial {
    background-color: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 8rem;
    color: rgba(247, 37, 133, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-info {
    margin-left: 1.5rem;
}

.testimonial-author-name {
    font-weight: 700;
    margin-bottom: 0;
}

.testimonial-author-title {
    color: #777;
    font-size: 1.4rem;
}

.testimonials-image {
    margin: 5rem auto 0;
    max-width: 60rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

/* --------- Footer --------- */
.main-footer {
    background-color: #2B2D42;
    color: #FAF9F6;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    grid-gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 4rem;
    margin-bottom: 2rem;
}

.footer-info p {
    color: #ccc;
}

.footer-contact h3,
.footer-legal h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-contact p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.footer-contact a {
    color: #ffffff;
}

.footer-contact a:hover {
    color: #FFEA00;
}

.footer-legal ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-legal li {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-legal a:hover,
.footer-legal a:focus {
    color: #F72585;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 1.4rem;
}

/* --------- Cookie Banner --------- */
#cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 40rem;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    display: flex;
    flex-direction: column;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-btn {
    align-self: flex-end;
}

/* --------- Legal Pages --------- */
.legal-page {
    padding: 8rem 0;
}

.legal-content {
    max-width: 80rem;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 3rem;
    text-align: center;
}

.legal-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: #3A86FF;
}

.legal-content p, 
.legal-content ul, 
.legal-content ol {
    margin-bottom: 2rem;
}

.legal-content ul li, 
.legal-content ol li {
    margin-bottom: 1rem;
}

/* --------- Thank You Page --------- */
.thank-you {
    text-align: center;
    padding: 10rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.thank-you .container {
    border: 3px solid #F72585;
    border-radius: 15px;
    padding: 4rem 3rem;
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.thank-you::before,
.thank-you::after {
    content: '';
    position: absolute;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    z-index: -1;
}

.thank-you::before {
    background: radial-gradient(circle, rgba(247, 37, 133, 0.1) 0%, rgba(247, 37, 133, 0) 70%);
    top: -10rem;
    left: -10rem;
}

.thank-you::after {
    background: radial-gradient(circle, rgba(58, 134, 255, 0.1) 0%, rgba(58, 134, 255, 0) 70%);
    bottom: -10rem;
    right: -10rem;
}

.thank-you h1 {
    color: #F72585;
    margin-bottom: 2rem;
    font-size: 4rem;
}

.thank-you p {
    max-width: 60rem;
    margin: 0 auto 3rem;
    font-size: 1.8rem;
}

.thank-you-icon {
    font-size: 8rem;
    color: #F72585;
    margin-bottom: 2rem;
}

.thank-you .btn {
    margin-top: 2rem;
}

/* --------- Media Queries --------- */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .feature {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 30rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .feature {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 54%;
    }
    
    .main-header .container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0.5rem;
    }
    
    .language-selector {
        margin-top: 1.5rem;
    }
    
    .contact-form-container {
        padding: 3rem 2rem;
    }
    
    #cookie-banner {
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }
} 