/* Variables de colores */
:root {
    --color-bg-gradient-start: #8a2be2; /* Neón violeta */
    --color-bg-gradient-end: #32cd32; /* Lima verde */
    --color-primary: #0000cd; /* Ultramarino */
    --color-accent-1: #ff7f50; /* Coral naranja */
    --color-accent-2: #87ceeb; /* Azul cielo */
    --color-text-dark: #333333; /* Grafito */
    --color-text-light: #ffffff; /* Blanco */
    --font-primary: 'Arial', sans-serif;
    --font-secondary: 'Georgia', serif;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevenir desplazamiento horizontal */
    width: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background: linear-gradient(135deg, var(--color-bg-gradient-start), var(--color-bg-gradient-end));
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevenir desplazamiento horizontal */
    width: 100%;
    max-width: 100%;
    padding-top: 70px; /* Espacio para el header fijo */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: visible; /* Evitar la barra de desplazamiento */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent-1);
}

img, svg, video, canvas, picture, figure {
    max-width: 100%;
    height: auto;
}

section, header, footer, nav, main, article, aside {
    max-width: 100vw;
    overflow-x: hidden;
}

table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

/* NUEVO HEADER MODERNO */
.site-header {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

.logo-container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: none;
}

.logo-part-1 {
    color: var(--color-text-light);
    background: linear-gradient(90deg, var(--color-text-light), var(--color-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-part-2 {
    color: var(--color-accent-1);
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-bg-gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation */
.desktop-nav-container {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 15px;
    height: 70px;
}

.nav-list {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 0;
    position: relative;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-bg-gradient-end));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-accent-1);
}

.nav-link:hover::after {
    width: 100%;
}

.contact-info {
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    color: var(--color-text-light);
    font-weight: 600;
    transition: all 0.3s;
}

.phone-link svg {
    margin-right: 8px;
}

.phone-link:hover {
    color: var(--color-accent-1);
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002;
    padding: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--color-text-light);
    transition: all 0.3s ease-in-out;
}

/* Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1500;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: #000;
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mobile-menu.active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent-1);
}

.mobile-contact-info {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.mobile-phone-link svg {
    margin-right: 10px;
}

/* Responsive styles */
@media screen and (max-width: 992px) {
    .nav-list {
        gap: 20px;
    }
    
    .contact-info {
        margin-left: 20px;
        padding-left: 20px;
    }
}

@media screen and (max-width: 768px) {
    /* Hide desktop navigation */
    .desktop-nav-container {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Show menu overlay when active */
    .menu-overlay.active {
        display: block;
    }
    
    /* Prevent body scrolling when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* ESTILOS PREVIOS DEL HEADER - SERÁN REEMPLAZADOS */
.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    color: var(--color-text-light);
    font-weight: 500;
    padding: 10px;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-1);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.contact-info .phone {
    color: var(--color-text-light);
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-accent-1);
    color: var(--color-text-light);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    background-color: white;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent-1);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: 80px 0;
    overflow: hidden; /* Añadido para contener todos los elementos hijos */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    overflow: visible; /* Cambiado para evitar el scroll */
}

.service-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 100%; /* Asegurar que no exceda el ancho del contenedor */
}

.service-item: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-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 50%;
    font-size: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.service-description {
    text-align: center;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Pricing Section */
.pricing {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-plan {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.plan-header {
    background-color: var(--color-primary);
    padding: 20px;
    text-align: center;
    color: var(--color-text-light);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
}

.plan-duration {
    font-size: 0.9rem;
    opacity: 0.8;
}

.plan-features {
    padding: 30px;
}

.plan-features ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.plan-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.plan-cta {
    padding: 0 30px 30px;
    text-align: center;
}

/* Contact Form */
.contact {
    padding: 80px 0;
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 205, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.form-check input {
    margin-right: 10px;
    margin-top: 4px;
    cursor: pointer;
}

.form-check label {
    font-weight: normal;
    cursor: pointer;
}

.form-check a {
    text-decoration: underline;
    font-weight: 600;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.form-actions .cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-actions .cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Estilos de radio buttons */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="radio"]:checked {
    border-color: var(--color-primary);
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

/* Estilos de checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Mensaje del formulario */
.form-message {
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.form-message.info {
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    color: #007bff;
}

/* Responsive del formulario */
@media screen and (max-width: 768px) {
    .form-container {
        padding: 25px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .form-actions .cta-button {
        width: 100%;
        padding: 15px;
    }
}

/* Footer */
.site-footer {
    background-color: #222;
    color: var(--color-text-light);
    padding: 60px 0 30px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-accent-1);
}

.contact-list li {
    margin-bottom: 10px;
}

.legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: var(--color-text-light);
    opacity: 0.8;
}

.legal-links a:hover {
    opacity: 1;
    color: var(--color-accent-1);
}

.copyright {
    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;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--color-text-light);
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-content div {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.cookie-content button {
    background-color: var(--color-accent-1);
    color: var(--color-text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-content button:hover {
    background-color: var(--color-primary);
}

/* Animaciones con CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeIn 1s ease forwards;
}

.animated-delay-1 {
    animation-delay: 0.2s;
}

.animated-delay-2 {
    animation-delay: 0.4s;
}

.animated-delay-3 {
    animation-delay: 0.6s;
}

/* Hover effects */
.zoom-on-hover {
    transition: transform 0.3s ease;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Ajuste para los planes de precios en móvil */
@media screen and (max-width: 768px) {
    .pricing-plans {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    
    .pricing-plan {
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .service-description, .benefit-item p {
        word-wrap: break-word;
    }
    
    /* Asegurarse de que el menú móvil no cause desplazamiento */
    .nav-container.active {
        width: 80%;
        max-width: 100vw;
    }
}

/* Responsive Styles mejorado */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .services-grid,
    .benefits-grid,
    .pricing-plans {
        grid-template-columns: 1fr;
        overflow: visible; /* Evitar scroll horizontal */
    }
    
    .service-item,
    .pricing-plan {
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden; /* Contener el contenido */
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content div {
        flex-direction: column;
        align-items: stretch;
    }
} 