/* ESTILOS PRINCIPALES DEL SITIO WEB */
:root {
    --color-cream: #f9f3e3;
    --color-charcoal: #2d3142;
    --color-terracotta: #ef8354;
    --color-peach: #f6ab6c;
    --color-sage: #519872;
    --transition-main: all 0.3s ease-in-out;
    --box-shadow: 0 4px 20px rgba(45, 49, 66, 0.1);
}

/* RESET Y ESTILOS GENERALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--color-terracotta);
    bottom: -10px;
    left: 0;
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-terracotta);
    text-decoration: none;
    transition: var(--transition-main);
}

a:hover {
    color: var(--color-peach);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.section-alt {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-peach) 100%);
    color: var(--color-charcoal);
}

.section-alt h2:after {
    background: white;
}

#faq h2:after, #contact h2:after, #about h2:after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--color-terracotta);
}

.section-alt a {
    color: white;
}

.section-alt a:hover {
    color: var(--color-cream);
}

.text-center {
    text-align: center;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-terracotta);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-main);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--color-peach);
    transition: all 0.3s;
    border-radius: 50px;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(239, 131, 84, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-terracotta);
    color: var(--color-terracotta);
}

.btn-outline:before {
    background-color: var(--color-terracotta);
}

.btn-outline:hover {
    color: white;
}

.btn-white {
    background-color: white;
    color: var(--color-terracotta);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-white:before {
    background-color: var(--color-peach);
}

.btn-white:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* HEADER Y NAVEGACIÓN */
header {
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(249, 243, 227, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-main);
}

header.scrolled {
    padding: 0.6rem 0;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-charcoal);
    position: relative;
    display: inline-block;
}

.logo span {
    color: var(--color-terracotta);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin: 0 0.8rem;
}

.menu li a {
    color: var(--color-charcoal);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    position: relative;
}

.menu li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-terracotta);
    transition: var(--transition-main);
}

.menu li a:hover:after,
.menu li.active a:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-charcoal);
    margin: 6px 0;
    transition: var(--transition-main);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    background-color: var(--color-cream);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 60px; /* Para compensar el header fijo más pequeño */
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/UpHCxV.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-btns {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

/* ABOUT SECTION */
.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-img {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-top: 1rem;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    padding: 1rem 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-terracotta);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-peach) 100%);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    transition: var(--transition-main);
}

.service-card h3,
.service-card p,
.service-card .service-icon {
    color: white;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: var(--transition-main);
}

.service-img {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    margin-bottom: 1rem;
    transition: var(--transition-main);
}

.service-card p {
    margin-bottom: 1.5rem;
    transition: var(--transition-main);
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li:before {
    content: '✓';
    color: white;
    position: absolute;
    left: 0;
    top: 0;
}

.service-features li {
    color: white;
}

/* CALCULADORA */
.calculator {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.calculator-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input {
    margin-right: 8px;
    width: auto;
}

.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-cream);
    border-radius: 5px;
    text-align: center;
}

.result-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta);
    margin-bottom: 1rem;
}

/* TESTIMONIOS */
.testimonial-container {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
}

.testimonial-slider {
    display: flex;
    width: 300%;
    transition: transform 0.5s ease;
}

.testimonial {
    width: calc(100% / 3);
    padding: 0 15px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    position: relative;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    font-size: 3rem;
    position: absolute;
    color: var(--color-terracotta);
    opacity: 0.3;
}

.testimonial-text:before {
    top: -20px;
    left: 0;
}

.testimonial-text:after {
    bottom: -40px;
    right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition-main);
}

.testimonial-dot.active {
    background-color: var(--color-terracotta);
    transform: scale(1.2);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-main);
    color: var(--color-charcoal);
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-terracotta);
}

.faq-item.active .faq-question:after {
    content: '-';
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-main);
    color: var(--color-charcoal);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* CONTACTO */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.contact-info {
    padding: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--color-terracotta);
}

.contact-text h4 {
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin-bottom: 0;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.checkbox-item input {
    margin-right: 10px;
    margin-top: 5px;
    width: auto;
}

/* FOOTER */
footer {
    background-color: var(--color-charcoal);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-logo {
    color: white;
    font-size: 1.5rem;
}

.footer-logo span {
    color: var(--color-terracotta);
}

.footer-about p {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-main);
}

.footer-links ul li a:hover {
    color: var(--color-terracotta);
}

.footer-contact p {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--color-terracotta);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* POLÍTICAS */
.policy-section {
    margin-top: 60px; /* Añadir espacio para el header fijo más pequeño */
    padding-top: 2rem;
}

.policy-container {
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.policy-container h1 {
    margin-bottom: 2rem;
}

.policy-container h2 {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    margin-bottom: 2rem;
    color: #777;
}

.breadcrumb a {
    color: var(--color-terracotta);
}

.policy-border {
    border: 2px solid var(--color-terracotta);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.policy-border:before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: white;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.policy-border h3 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: -3rem;
    background-color: white;
    display: inline-block;
    padding: 0 1.5rem;
    left: 50%;
    transform: translateX(-50%);
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    z-index: 1000;
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.cookie-popup p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

.cookie-buttons button {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-main);
    cursor: pointer;
}

.accept-cookies {
    background-color: var(--color-terracotta);
    color: white;
    border: none;
}

.accept-cookies:hover {
    background-color: var(--color-peach);
}

.customize-cookies {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #777;
}

.customize-cookies:hover {
    border-color: var(--color-charcoal);
    color: var(--color-charcoal);
}

/* THANKS PAGE */
.thanks-container {
    min-height: calc(100vh - 300px);
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thanks-content {
    max-width: 600px;
    background-color: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--box-shadow);
}

.thanks-icon {
    font-size: 4rem;
    color: var(--color-terracotta);
    margin-bottom: 1.5rem;
}

.thanks-content h1 {
    margin-bottom: 1.5rem;
}

.thanks-content p {
    margin-bottom: 2rem;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animated {
    opacity: 0;
}

.animated.show {
    opacity: 1;
    animation: fadeInUp 1s ease-out;
}

/* RESPONSIVE */
@media screen and (max-width: 992px) {
    body {
        overflow-x: hidden; /* Evitar scroll horizontal */
    }

    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .mobile-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-main);
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu li {
        margin: 1.5rem 0;
    }
    
    .about-grid,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slider {
        width: 100%;
        flex-direction: column;
    }
    
    .testimonial {
        width: 100%;
        padding: 0;
        margin-bottom: 2rem;
    }
    
    .hero {
        min-height: 500px;
        height: auto;
        padding: 120px 0 80px;
    }
}