/* 
 * Main stylesheet for domain.com
 * 
 * Color palette:
 * - Electric Blue: #0077FF
 * - Coral: #FF6B6B
 * - Lime: #CFFF04
 * - Smoky White: #F8F8F8
 * - Dark Blue (Text): #002244
 */

/* === RESET & BASE STYLES === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #002244;
    background-color: #F8F8F8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
}

a {
    color: #0077FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B6B;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

main {
    flex: 1;
    margin-top: 70px; /* Altura del encabezado para compensar la posición fixed */
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2em;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #FF6B6B, #0077FF);
    border-radius: 3px;
}

.accent {
    color: #FF6B6B;
}

/* === BUTTONS === */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #0077FF);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 119, 255, 0.2);
}

.cta-button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 119, 255, 0.3);
}

/* === HEADER === */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-text {
    color: #002244;
}

.logo-highlight {
    color: #0077FF;
}

/* === NAVIGATION === */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #0077FF;
    transition: all 0.3s ease-in-out;
}

.menu-icon span {
    top: 10px;
}

.menu-icon span::before {
    content: '';
    top: -8px;
}

.menu-icon span::after {
    content: '';
    top: 8px;
}

.site-nav .menu {
    display: flex;
    list-style: none;
}

.site-nav .menu li {
    margin-left: 25px;
}

.site-nav .menu a {
    color: #002244;
    font-weight: 500;
    position: relative;
}

.site-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #FF6B6B, #0077FF);
    transition: width 0.3s ease;
}

.site-nav .menu a:hover {
    color: #0077FF;
}

.site-nav .menu a:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #FF6B6B, #0077FF);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-content .cta-button {
    background: #fff;
    color: #0077FF;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.hero-content .cta-button:hover {
    background: #CFFF04;
    color: #002244;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ABOUT SECTION === */
.about-section {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.02);
}

.brand {
    font-weight: 700;
    color: #0077FF;
}

/* === SERVICES SECTION === */
.services-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    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-image {
    width: 100%;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* === ADVANTAGES SECTION === */
.advantages-section {
    padding: 80px 0;
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    position: relative;
    padding: 30px;
    transition: transform 0.3s ease;
}

.advantage-number {
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 10px;
    color: #0077FF;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item:hover .advantage-number {
    opacity: 0.2;
    transform: scale(1.1);
}

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.05), rgba(255, 107, 107, 0.05));
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 300px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(50px);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: #0077FF;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.testimonial-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-nav-item.active {
    background-color: #0077FF;
    transform: scale(1.2);
}

.testimonial-nav-item:hover {
    background-color: #FF6B6B;
}

/* === CTA SECTION === */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0077FF, #FF6B6B);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-section .cta-button {
    background: white;
    color: #0077FF;
}

.cta-section .cta-button:hover {
    background: #CFFF04;
    color: #002244;
}

/* === CONTACT FORM === */
.contact-section {
    padding: 80px 0;
    background-color: #F8F8F8;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: #0077FF;
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.submit-button {
    background: linear-gradient(135deg, #FF6B6B, #0077FF);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 119, 255, 0.2);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 119, 255, 0.3);
}

/* === FAQ SECTION === */
.faq-section {
    padding: 80px 0;
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-question {
    display: block;
    position: relative;
    padding: 15px 20px;
    background-color: #f5f5f5;
    color: #002244;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
    background-color: #0077FF;
    color: white;
}

.faq-toggle:checked + .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    background-color: white;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
}

/* === FOOTER === */
.site-footer {
    background-color: #002244;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info, .footer-contact, .footer-legal {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.footer-description {
    opacity: 0.7;
    line-height: 1.6;
}

.footer-contact h3, .footer-legal h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after, .footer-legal h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #FF6B6B, #0077FF);
}

.contact-list, .legal-links {
    list-style: none;
}

.contact-list li, .legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.legal-links a:hover {
    opacity: 1;
    color: #CFFF04;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #002244;
    color: white;
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-button {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: #CFFF04;
    color: #002244;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-icon {
        display: block;
        z-index: 101;
    }
    
    .menu-toggle:checked + .menu-icon span {
        background-color: transparent;
    }
    
    .menu-toggle:checked + .menu-icon span::before {
        transform: rotate(45deg) translate(0, 8px);
    }
    
    .menu-toggle:checked + .menu-icon span::after {
        transform: rotate(-45deg) translate(0, -8px);
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        transition: right 0.4s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 50px 0;
    }
    
    .menu-toggle:checked ~ .site-nav {
        right: 0;
    }
    
    .site-nav .menu {
        flex-direction: column;
        text-align: center;
    }
    
    .site-nav .menu li {
        margin: 15px 0;
    }
    
    .site-nav .menu a {
        font-size: 1.2rem;
    }
    
    /* Other responsive adjustments */
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .testimonial-image {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    /* Fix horizontal scroll */
    .container,
    .hero-section,
    .about-section,
    .services-section,
    .advantages-section,
    .testimonials-section,
    .cta-section,
    .contact-section,
    .faq-section,
    .policy-section,
    .thank-you-section,
    .site-footer {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .service-image img {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .testimonials-carousel {
        height: 360px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-button {
        width: 100%;
    }
}
