/* PALETA DE COLORES */
:root {
    --color-primary-start: #00d4ff; /* Inicio del gradiente principal */
    --color-primary-end: #8e2de2;   /* Final del gradiente principal */
    --color-accent: #ff6f61;        /* Elementos de acento */
    --color-text: #0d1b2a;          /* Texto principal */
    --color-button: #a8ff3e;        /* Botones */
    --color-bg: #fefefe;            /* Fondo de bloques */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombras suaves */
    --transition: all 0.3s ease;    /* Transición global */
}

/* RESET Y ESTILOS BÁSICOS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ENCABEZADO Y NAVEGACIÓN */
header {
    background-color: var(--color-bg);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-desktop {
    display: flex;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--color-text);
    margin-left: 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    box-shadow: var(--shadow);
    padding: 20px;
    flex-direction: column;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--color-text);
    padding: 15px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

/* BOTONES */
.btn {
    display: inline-block;
    background-color: var(--color-button);
    color: var(--color-text);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(168, 255, 62, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 255, 62, 0.4);
}

/* SECCIONES */
section {
    padding: 100px 0;
    background-color: var(--color-bg);
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 1;
    transform: translateY(0);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
    opacity: 1;
    transform: none;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    width: 90%;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease forwards;
    text-align: center;
    margin: 0 auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    margin-bottom: 30px;
    font-size: 4rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
}

/* SOBRE NOSOTROS */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* SERVICIOS */
.services {
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    background-color: #fff;
    text-align: center;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    border-radius: 50%;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff;
}

/* BENEFICIOS */
.benefits {
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.benefit-icon {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-right: 20px;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
}

.benefit-text h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* TESTIMONIOS */
.testimonials {
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-box {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    position: relative;
}

.testimonial-box:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
}

/* FORMULARIO */
.contact-form {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(142, 45, 226, 0.1));
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 47px;
    color: var(--color-text);
    opacity: 0.5;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
}

.checkbox-group a {
    color: var(--color-accent);
    text-decoration: none;
    margin-left: 5px;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: #f8f8f8;
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    display: block;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-answer {
    background-color: #fff;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* NOTICIAS/BLOG */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    background-color: #fff;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

/* CONTACTO */
.contact-info {
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    background-color: #fff;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* FOOTER */
footer {
    background-color: var(--color-text);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* PÁGINAS DE POLÍTICA */
.policy-page {
    padding: 150px 0 80px;
}

.policy-container {
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.policy-container h1 {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.policy-container h2 {
    font-size: 1.8rem;
    margin-top: 40px;
}

.policy-container p {
    margin-bottom: 20px;
}

.policy-container ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* PÁGINA DE AGRADECIMIENTO */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thanks-container {
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    background-color: var(--color-button);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 30px;
    border-radius: 50%;
}

/* COOKIE POPUP */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.5s ease;
    z-index: 1000;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-text {
    margin-right: 20px;
}

.cookie-btn {
    flex-shrink: 0;
}

/* ANIMACIONES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Asegurar que las imágenes no causen desbordamiento */
img {
    max-width: 100%;
    height: auto;
}

/* Asegurar que las tablas no causen desbordamiento */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content {
        padding: 30px;
        width: 90%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .news-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: 85vh;
    }
    
    .hero-content {
        padding: 20px;
        width: 92%;
        max-width: 100%;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .contact-form {
        padding: 20px;
        width: 90%;
    }
    
    .form-control {
        padding: 12px 12px 12px 40px;
    }
    
    .form-icon {
        left: 15px;
        top: 45px;
    }
    
    .policy-container {
        padding: 30px;
    }
    
    section {
        width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 375px) {
    .hero {
        padding: 90px 0 30px;
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 15px;
        width: 95%;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}