/* css/style.css */

/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #1a1a1a; /* Negro minimalista */
    --secondary-color: #8b5cf6; /* Púrpura violeta que combina mejor */
    --accent-color: #f59e0b; /* Amarillo sutil para acentos */
    --light-bg: #fafafa; /* Gris muy claro */
    --dark-text: #1f2937; /* Gris oscuro para texto */
    --light-text: #f9fafb;
    --grey-text: #6b7280; /* Gris medio moderno */
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif; /* Sistema de fuentes moderno */
}

/* --- Estilos Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth; 
    /* Permitir mejor control del scroll en móvil */
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    background-color: var(--white);
    font-size: 16px;
    font-weight: 400;
    /* Mejor control del scroll en dispositivos táctiles */
    overscroll-behavior-y: auto;
    overscroll-behavior-x: contain;
}
body.dark-mode {
    background-color: #1a1b2e;
    color: #f1f5f9;
}
body.dark-mode nav,
body.dark-mode .footer-content,
body.dark-mode .contact-section,
body.dark-mode .team-section,
body.dark-mode .portfolio-section,
body.dark-mode .hosting-section {
    background: #1a1b2e !important;
    color: #f1f5f9;
}
body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .keraai-intro p,
body.dark-mode .keraai-intro strong,
body.dark-mode .plan-header h3,
body.dark-mode .plan-price,
body.dark-mode .footer-section h3 {
    color: #f8fafc !important;
}
body.dark-mode .keraai-intro strong {
    color: var(--secondary-color) !important;
}
body.dark-mode .button,
body.dark-mode .button-primary,
body.dark-mode .button-secondary {
    background: var(--secondary-color) !important;
    color: #fff !important;
    border: 1px solid var(--secondary-color) !important;
}
body.dark-mode .button-secondary {
    background: transparent !important;
    color: var(--secondary-color) !important;
    border: 1px solid var(--secondary-color) !important;
}
body.dark-mode .button-secondary:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
}
body.dark-mode .plan-card {
    background: #16213e !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}
body.dark-mode .plan-card.featured {
    background: var(--secondary-color) !important;
    color: #fff !important;
}
body.dark-mode .gallery-item {
    background: #23272a !important;
}
body.dark-mode .gallery-overlay {
    background: linear-gradient(transparent, rgba(30, 30, 30, 0.85));
}
body.dark-mode .contact-form {
    background: #16213e !important;
    color: #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
body.dark-mode .contact-form:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}
body.dark-mode .contact-form h4 {
    color: #D4AF37 !important;
}
body.dark-mode .form-group input,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form .account-select {
    background: #181a1b !important;
    color: #fff !important;
    border-color: #D4AF37 !important;
}
body.dark-mode .form-group input:focus,
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus,
body.dark-mode .contact-form .account-select:focus {
    border-color: #D4AF37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
}
body.dark-mode .form-message.success {
    background: #1e4d2b !important;
    color: #a8e6cf !important;
    border-color: #2d5a3d !important;
}
body.dark-mode .form-message.error {
    background: #2A1216 !important;
    color: #D4A8AC !important;
    border-color: #4A1E23 !important;
}
body.dark-mode .footer-bottom {
    color: #aaa !important;
    border-top: 1px solid #444;
}
body.dark-mode .process-section {
    background: #23272a !important;
    color: #e0e0e0 !important;
}
body.dark-mode .process-section .section-title,
body.dark-mode .process-section .section-subtitle,
body.dark-mode .process-section p,
body.dark-mode .process-section li {
    color: #e0e0e0 !important;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 60px 0; }

/* Reduce padding in hero section */
.hero-section {
    height: auto;
    padding: 60px 0;
}

/* Reduce padding in main containers */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Reduce margin in section titles */
.section-title {
    margin-bottom: 0.75rem;
}

/* Reduce margin in section subtitles */
.section-subtitle {
    margin-bottom: 2rem;
}

/* Reduce padding in footer */
footer {
    padding: 3rem 0 1.5rem;
}

/* Reduce padding in footer content */
.footer-content {
    padding: 1.5rem 1rem;
}

/* Reduce padding in contact form */
.contact-form {
    padding: 1.5rem;
}

/* Reduce padding in hosting plans */
.hosting-plans {
    margin-top: 1.5rem;
}

/* Reduce padding in team section */
.team-section {
    padding: 60px 0;
}

/* Reduce padding in portfolio section */
.portfolio-section {
    padding: 60px 0;
}

/* --- Títulos y Botones --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--primary-color);
    letter-spacing: -0.025em;
}
.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--grey-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}
.section-title.left-aligned, .section-subtitle.left-aligned {
    text-align: left;
    margin-left: 0;
}
.button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.button-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: 1px solid transparent;
}
.button-primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.button-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}
.button-secondary:hover {
    background: var(--light-bg);
    border-color: var(--secondary-color);
}

/* --- Navegación --- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.526);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav-scrolled {
    box-shadow: 0 2px 8px var(--shadow-light);
    background: rgba(255, 255, 255, 0.98);
}
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 30px;
}
.logo {
    display: flex;
    align-items: right;
    
    
}
.logo img { 
    height: 80px; 
    width: auto;
    transition: transform 0.2s ease;
    vertical-align: middle;
}
.logo img:hover {
    transform: scale(1.02);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a { 
    text-decoration: none; 
    color: var(--dark-text); 
    font-weight: 400; 
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav-links a:hover { 
    color: var(--secondary-color);
    background: rgba(139, 92, 246, 0.05);
    transform: translateY(-1px);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:focus {
    outline: none;
}
.nav-button { padding: 10px 28px; font-size: 0.9rem; }
/* Botón hamburguesa minimalista */
.hamburger {
    display: none;
    background: none;
    border: none;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    flex-shrink: 0;
}

.hamburger:hover {
    background-color: rgba(139, 92, 246, 0.08);
    transform: scale(1.05);
}

.hamburger:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Líneas del hamburguesa */
.hamburger i {
    display: none;
}

.hamburger::before,
.hamburger::after,
.hamburger {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line,
.hamburger-line::before,
.hamburger-line::after {
    width: 20px;
    height: 2px;
    background-color: var(--dark-text);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line {
    position: relative;
    display: block;
    margin: 0 auto;
}

.hamburger-line::before,
.hamburger-line::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-line::before {
    top: -6px;
}

.hamburger-line::after {
    top: 6px;
}

/* Estado activo del hamburguesa */
.hamburger.active .hamburger-line {
    background-color: transparent;
}

.hamburger.active .hamburger-line::before {
    transform: rotate(45deg);
    top: 0;
    background-color: var(--secondary-color);
}

.hamburger.active .hamburger-line::after {
    transform: rotate(-45deg);
    top: 0;
    background-color: var(--secondary-color);
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    text-decoration: none;
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Estado cuando el menú móvil está abierto */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Overlay premium para el menú móvil */
.nav-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 16, 24, 0.4) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(16, 16, 24, 0.4) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Sección Hero con Forma Curva --- */
.hero-section {
    position: relative;
    min-height: 90vh;
    height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0 80px 0;
    background: linear-gradient(135deg, #1a1b2e 0%, #16213e 100%);
}
.hero-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; z-index: 2; }
.hero-content { text-align: center; }

/* Nuevo diseño mejorado del hero */
.hero-intro {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Animación de escritura mejorada para el título en dos líneas */
.hero-title.fade-in {
    opacity: 1;
    display: block;
    text-align: center;
    margin: 0 auto 1rem auto;
}

.title-line-1, .title-line-2 {
    display: block;
    text-align: center;
    margin: 0 auto;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(45deg, #ffffff, #f8fafc, #ffffff, #e2e8f0, #ffffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-line-1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    border-right: 3px solid #8b5cf6;
    animation: 
        typewriterLine1 8s steps(18) infinite,
        gradientShift 4s ease-in-out infinite,
        titleGlow 3s ease-in-out infinite alternate;
    width: 0;
    max-width: 100%;
    margin-bottom: 0.2rem;
}

.title-line-2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    border-right: 3px solid #4ecdc4;
    animation: 
        typewriterLine2 8s steps(18) infinite,
        gradientShift 4s ease-in-out infinite 1s,
        titleGlowIA 3s ease-in-out infinite alternate;
    width: 0;
    max-width: fit-content;
    min-width: 0;
}

@keyframes typewriterLine1 {
    0% { 
        width: 0; 
        border-right-color: #8b5cf6;
    }
    15% { 
        width: 100%; 
        border-right-color: #8b5cf6;
    }
    20% { 
        width: 100%; 
        border-right-color: transparent;
    }
    80% { 
        width: 100%; 
        border-right-color: transparent;
    }
    85% { 
        width: 100%; 
        border-right-color: #8b5cf6;
    }
    95% { 
        width: 0; 
        border-right-color: #8b5cf6;
    }
    100% { 
        width: 0; 
        border-right-color: transparent;
    }
}

@keyframes typewriterLine2 {
    0% { 
        width: 0; 
        border-right-color: transparent;
    }
    20% { 
        width: 0; 
        border-right-color: transparent;
    }
    22% { 
        width: 0; 
        border-right-color: #4ecdc4;
    }
    25% { 
        width: 2ch; 
        border-right-color: #4ecdc4;
    }
    80% { 
        width: 2ch; 
        border-right-color: #4ecdc4;
    }
    85% { 
        width: 2ch; 
        border-right-color: transparent;
    }
    100% { 
        width: 2ch; 
        border-right-color: transparent;
    }
}

@keyframes gradientShift {
    0% { 
        background-position: 0% 50%; 
        filter: brightness(1);
    }
    50% { 
        background-position: 100% 50%; 
        filter: brightness(1.1);
    }
    100% { 
        background-position: 0% 50%; 
        filter: brightness(1);
    }
}

@keyframes titleGlow {
    0% { 
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 25px rgba(248, 250, 252, 0.4);
        transform: scale(1.01);
    }
}

@keyframes titleGlowIA {
    0% { 
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(248, 250, 252, 0.6);
        transform: scale(1.02);
    }
}

/* Versión para móviles */
@media (max-width: 768px) {
    .hero-title.fade-in {
        display: block;
        text-align: center;
    }
    
    .title-line-1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 0.1rem;
        animation: 
            typewriterMobile1 6s steps(15) infinite,
            simpleGlow 3s ease-in-out infinite alternate;
    }
    
    .title-line-2 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        animation: 
            typewriterMobile2 6s steps(15) infinite,
            simpleGlowIA 3s ease-in-out infinite alternate;
        max-width: fit-content;
        min-width: 0;
    }
    
    @keyframes typewriterMobile1 {
        0% { width: 0; }
        15% { width: 100%; }
        80% { width: 100%; }
        90% { width: 0; }
        100% { width: 0; }
    }
    
    @keyframes typewriterMobile2 {
        0% { width: 0; }
        18% { width: 0; }
        22% { width: 2ch; }
        80% { width: 2ch; }
        100% { width: 2ch; }
    }
    
    @keyframes simpleGlow {
        0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
        100% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
    }
    
    @keyframes simpleGlowIA {
        0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
        100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    margin: 0;
}

/* Animación mejorada para el subtítulo con efecto de rebote */
.hero-subtitle.fade-in-delay {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    animation: heroSubtitleAnimation 1.8s ease-out 0.4s forwards;
}

@keyframes heroSubtitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    60% {
        opacity: 0.9;
        transform: translateY(-3px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-offer {
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    animation: heroOfferFloat 3s ease-in-out infinite;
}

@keyframes heroOfferFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}

.offer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gpt-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: gptIconPulse 2s ease-in-out infinite;
}

@keyframes gptIconPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(2deg);
    }
    50% {
        transform: scale(1.1) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-2deg);
    }
}

.gpt-icon i {
    font-size: 3rem;
    color: #fff;
}

.gpt-icon .gpt-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gpt-icon:hover .gpt-logo {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(0) invert(1) drop-shadow(0 4px 15px rgba(255,255,255,0.4));
}

.offer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.offer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #E67E22, #D35400);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.3);
}

.offer-badge i {
    font-size: 1.2rem;
    animation: flicker 1.5s infinite;
}

.pricing {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.old-price {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    text-decoration-color: #8B2635;
    text-decoration-thickness: 3px;
    font-weight: 500;
}

.current-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #F1C40F;
    text-shadow: 0 0 15px rgba(241, 196, 15, 0.4);
    line-height: 1;
}

.current-price small {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

@keyframes glow {
    0% { box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4); }
    100% { box-shadow: 0 20px 40px rgba(16, 185, 129, 0.6); }
}

@keyframes flicker {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}
.animated-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--white);
    animation: typing 4s steps(30, end) infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 0; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--white); }
}
.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center;
    flex-wrap: wrap;
    animation: heroButtonsFloat 3s ease-in-out infinite;
}

@keyframes heroButtonsFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-buttons .button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-buttons .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .button:hover::before {
    left: 100%;
}

.hero-buttons .button-primary {
    background: linear-gradient(45deg, #F1C40F, #E67E22);
    color: #2c3e50;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
    animation: primaryButtonPulse 2s ease-in-out infinite;
}

@keyframes primaryButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(241, 196, 15, 0.5);
    }
}

.hero-buttons .button-primary:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.6);
}

.hero-buttons .button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: secondaryButtonFloat 2.5s ease-in-out infinite 0.5s;
}

@keyframes secondaryButtonFloat {
    0%, 100% {
        transform: translateX(0px) scale(1);
    }
    50% {
        transform: translateX(3px) scale(1.02);
    }
}

.hero-buttons .button-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}
.hero-image { 
    width: 100%; 
    height: auto; 
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: heroImageFloat 4s ease-in-out infinite;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
        filter: brightness(1.1);
    }
}

/* Estilos mejorados para la imagen principal en el hero */
.hero-visuals {
    text-align: center;
    padding-right: 1rem;
    animation: heroVisualsSlideIn 1.5s ease-out;
}

@keyframes heroVisualsSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hero-visuals img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 60px;
    box-shadow: 0 25px 100px rgba(13, 13, 13, 0.025);
    margin-left: -1rem;
    transition: all 0.4s ease;
    animation: heroImageBreathe 3s ease-in-out infinite;
}

@keyframes heroImageBreathe {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 25px 100px rgba(13, 13, 13, 0.025);
    }
    50% {
        transform: scale(1.03) rotate(1deg);
        box-shadow: 0 30px 120px rgba(13, 13, 13, 0.04);
    }
}

.hero-visuals img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 35px 140px rgba(13, 13, 13, 0.06);
}

/* --- Nuevas Secciones de Features y Proceso --- */
.features-section, .process-section { padding: 80px 0; }
.process-section { background-color: var(--light-bg); }
.feature-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.feature-content-wrapper.reverse { grid-template-columns: 1fr 1fr; }
.feature-content-wrapper.reverse .feature-text-content { order: 2; }
.feature-content-wrapper.reverse .feature-image-content { order: 1; }
.feature-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.feature-item-icon { background-color: var(--secondary-color); color: var(--white); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 5px; }
.feature-item-text h6 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-item-text p { color: var(--grey-text); }
.divider { height: 1px; background-color: var(--border-color); margin: 2rem 0; }
.feature-image-content { position: relative; }
.main-feature-image { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.main-feature-image.single { max-width: 80%; display: block; margin: auto; }
.floating-feature-image { position: absolute; bottom: -10%; left: -10%; width: 50%; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.2); border: 5px solid var(--white); }
.process-list { list-style: none; margin: 2rem 0; }
.process-list li { padding: 0.5rem 0; font-size: 1.1rem; font-weight: 500; }
.process-list i { color: var(--primary-green); margin-right: 1rem; }

/* --- Estilos para la sección de beneficios destacados --- */
.benefits-highlight {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-green);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item i {
    font-size: 1.3rem;
    color: var(--primary-green);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.benefit-item span {
    color: var(--dark-text);
    font-size: 1rem;
    line-height: 1.4;
}

.benefit-item strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* Dark mode styles para benefits */
body.dark-mode .benefits-highlight {
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--primary-green);
}

body.dark-mode .benefit-item span {
    color: #e0e0e0 !important;
}

body.dark-mode .benefit-item strong {
    color: var(--primary-green) !important;
}

/* --- Sección Acerca de KeraAI (Diseño Simple) --- */
.team-section { background: var(--light-bg); }

.about-keraai-simple {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.keraai-content {
    padding: 2rem 0;
}

.keraai-intro p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.6;
}

.keraai-intro i {
    color: var(--primary-green);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    flex-shrink: 0;
}

.keraai-intro strong {
    color: var(--primary-green);
    font-weight: 600;
}

.keraai-logo-simple {
    display: flex;
    justify-content: center;
    align-items: center;
}

.keraai-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.keraai-logo:hover {
    transform: scale(1.05);
}

/* --- Nueva Sección Acerca de KeraAI (Simplificada) --- */
.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header .section-subtitle {
    max-width: 800px;
    margin: 1rem auto 0;
    color: var(--grey-text);
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-keraai-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.keraai-main-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.keraai-logo-main {
    width: 400px;
    height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.keraai-logo-main:hover {
    transform: scale(1.05);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: var(--light-green-bg);
    border: 2px solid #333;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin: 0;
    font-weight: 600;
}

/* Dark mode styles for simplified about section */
body.dark-mode .feature-icon {
    background: #2a2d30;
    border-color: #555;
}

body.dark-mode .feature-item h3 {
    color: #fff !important;
}

body.dark-mode .about-header .section-subtitle {
    color: #ccc !important;
}

/* --- Sección Portafolio --- */
.portfolio-section { background: var(--white); }
.portfolio-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter { padding: 10px 25px; background: #e9f5e9; color: var(--grey-text); text-decoration: none; border-radius: 25px; transition: all 0.3s ease; font-weight: 500; }
.filter.active, .filter:hover { background: var(--secondary-color); color: var(--white); }
.portfolio-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.gallery-item { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px var(--shadow-light); transition: transform 0.4s ease, box-shadow 0.4s ease; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 15px 35px var(--shadow-dark); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; display: block; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); color: var(--white); padding: 2rem 1.5rem; transform: translateY(100%); transition: transform 0.4s ease; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h3 { margin: 0; font-size: 1.2rem; }

/* --- Sección Hosting --- */
.hosting-section { background: var(--light-bg); }

/* Ocultar indicador de scroll en desktop */
.scroll-hint-mobile {
    display: none;
}

.hosting-plans { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: auto auto; 
    gap: 2rem; 
    margin-top: 3rem; 
    align-items: start; 
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Reorganizar los planes en desktop: 3 arriba, 2 centrados abajo */
.hosting-plans .plan-card:nth-child(4) {
    /* Combo VIP centrado en la segunda fila */
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    transform: translateX(50%);
}

.hosting-plans .plan-card:nth-child(5) {
    /* ChatGPT Pro centrado en la segunda fila */
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    transform: translateX(-50%);
}
.hosting-plans::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Webkit */
}
.plan-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.plan-card:hover::before {
    left: 100%;
}

.plan-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.plan-card:nth-child(odd) {
    animation: planFloatOdd 4s ease-in-out infinite;
}

.plan-card:nth-child(even) {
    animation: planFloatEven 4s ease-in-out infinite 0.5s;
}

@keyframes planFloatOdd {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes planFloatEven {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(8px);
    }
}
.plan-card.featured { 
    background: var(--secondary-color); 
    color: var(--white); 
    transform: scale(1.08); 
    z-index: 10; 
    border-color: var(--secondary-color);
    animation: featuredPlanGlow 3s ease-in-out infinite;
}

@keyframes featuredPlanGlow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
        transform: scale(1.08) translateY(0px);
    }
    50% {
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.5);
        transform: scale(1.09) translateY(-5px);
    }
}
.plan-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #8B2635; color: white; padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; }
.plan-header h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.plan-price { font-size: 2.8rem; font-weight: 700; margin-bottom: 2rem; }
.plan-price span { font-size: 1rem; font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 2.5rem; padding: 0; }
.plan-features li { padding: 0.5rem 0; display: flex; align-items: center; justify-content: center; gap: 0.7rem; }
.plan-features i {
    color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.plan-features li:hover i {
    transform: scale(1.3) rotate(360deg);
    color: #ff6b6b;
}

.plan-header h3 {
    animation: titleBounce 2s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.plan-price {
    animation: priceGlow 2.5s ease-in-out infinite;
}

@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
        transform: scale(1.05);
    }
}
.plan-card.featured .plan-features, .plan-card.featured .plan-header h3, .plan-card.featured .plan-price { color: var(--white); }
.plan-card.featured .plan-features i { color: var(--white); }

/* Animaciones mejoradas para los planes de hosting */
@keyframes planFade {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.9) rotateX(10deg); 
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02) rotateX(0deg);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg); 
    }
}

.hosting-plans .plan-card {
    opacity: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hosting-plans .aos-animate {
    animation: planFade 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.plan-badge {
    animation: badgeFloatPulse 2s ease-in-out infinite;
}

@keyframes badgeFloatPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1) rotate(0deg); 
        background: #8B2635;
    }
    25% {
        transform: translateX(-50%) scale(1.05) rotate(2deg);
        background: #a53545;
    }
    50% { 
        transform: translateX(-50%) scale(1.1) rotate(0deg);
        background: #c44155;
    }
    75% {
        transform: translateX(-50%) scale(1.05) rotate(-2deg);
        background: #a53545;
    }
}

/* Animaciones especiales para planes mega destacados */
.mega-featured {
    animation: megaPlanAnimation 4s ease-in-out infinite;
}

@keyframes megaPlanAnimation {
    0%, 100% {
        transform: scale(1.08) translateY(0px) rotate(0deg);
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    }
    25% {
        transform: scale(1.1) translateY(-3px) rotate(1deg);
        box-shadow: 0 20px 50px rgba(78, 205, 196, 0.4);
    }
    50% {
        transform: scale(1.12) translateY(-8px) rotate(0deg);
        box-shadow: 0 25px 60px rgba(255, 107, 107, 0.5);
    }
    75% {
        transform: scale(1.1) translateY(-3px) rotate(-1deg);
        box-shadow: 0 20px 50px rgba(78, 205, 196, 0.4);
    }
}

.popular-plan {
    animation: popularPlanGlow 3.5s ease-in-out infinite;
}

@keyframes popularPlanGlow {
    0%, 100% {
        transform: scale(1.08) translateY(0px);
        box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1) translateY(-6px);
        box-shadow: 0 18px 45px rgba(139, 92, 246, 0.6);
        filter: brightness(1.1);
    }
}

/* Animaciones adicionales para elementos específicos */
.animated-badge {
    animation: badgeSparkle 2.5s ease-in-out infinite;
}

@keyframes badgeSparkle {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        filter: brightness(1) hue-rotate(0deg);
    }
    33% {
        transform: translateX(-50%) scale(1.08) rotate(5deg);
        filter: brightness(1.2) hue-rotate(10deg);
    }
    66% {
        transform: translateX(-50%) scale(1.05) rotate(-3deg);
        filter: brightness(1.1) hue-rotate(-5deg);
    }
}

/* --- Animaciones Globales Mejoradas --- */

/* Animación de entrada para elementos del hero */
.animated-title {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.animated-subtitle {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.animated-offer {
    animation-delay: 1s;
    animation-fill-mode: both;
}

.animated-buttons {
    animation-delay: 1.4s;
    animation-fill-mode: both;
}

.animated-visuals {
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

.animated-hero-img {
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

/* Animaciones específicas para los planes */
.animated-plans {
    perspective: 1000px;
}

.animated-plan {
    transform-style: preserve-3d;
    animation-fill-mode: both;
}

.animated-plan:nth-child(1) { animation-delay: 0.1s; }
.animated-plan:nth-child(2) { animation-delay: 0.2s; }
.animated-plan:nth-child(3) { animation-delay: 0.3s; }
.animated-plan:nth-child(4) { animation-delay: 0.4s; }
.animated-plan:nth-child(5) { animation-delay: 0.5s; }

/* Efectos de hover mejorados para elementos animados */
.animated-icon:hover {
    animation-play-state: paused;
    transform: scale(1.15) rotate(5deg);
}

.animated-plan:hover {
    animation-play-state: paused;
    z-index: 20;
}

/* Optimizaciones de rendimiento */
.hero-section,
.hosting-section,
.plan-card,
.hero-offer,
.gpt-icon {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.contact-section { background-color: var(--white); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    background: var(--light-green-bg);
    padding: 2rem;
    border-radius: 20px;
    align-items: stretch;
    min-height: 520px;
}
.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 450px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border-radius: 15px;
}
.contact-form { 
    background: var(--white); 
    padding: 2.5rem; 
    border-radius: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    gap: 1.2rem; 
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-dark);
}
.contact-form h4 { 
    font-size: 1.5rem; 
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}
.contact-form p { 
    color: var(--grey-text); 
    margin-bottom: 1rem; 
}
.form-group { 
    display: flex; 
    gap: 1.5rem; 
}
.form-group input { 
    width: 100%; 
    padding: 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: all 0.3s ease;
    background: var(--white);
}
.form-group input:focus,
.contact-form input:focus, 
.contact-form textarea:focus { 
    outline: none; 
    border-color: var(--primary-green); 
    box-shadow: 0 0 0 3px var(--shadow-dark); 
    transform: translateY(-2px);
}
.contact-form input, 
.contact-form textarea,
.contact-form .account-select { 
    padding: 15px; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: all 0.3s ease;
    background: var(--white);
    width: 100%;
    margin-bottom: 15px;
}
.contact-form .account-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}
.contact-form .account-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--shadow-dark);
    transform: translateY(-2px);
}
.contact-form textarea { 
    min-height: 120px; 
    resize: vertical; 
    line-height: 1.6;
}

/* Botón de envío mejorado */
#submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}
.btn-text,
.btn-loading {
    transition: all 0.3s ease;
}
.btn-loading i {
    margin-right: 0.5rem;
}

/* Mensajes de estado del formulario */
.form-message {
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}
.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    transform: translateY(0);
}
.form-message.error {
    background: #3D1A1F;
    color: #E6B3B8;
    border: 1px solid #5A2D31;
    opacity: 1;
    transform: translateY(0);
}

/* Campos requeridos */
.contact-form input[required]::placeholder,
.contact-form select[required] option:first-child,
.contact-form textarea[required]::placeholder {
    color: var(--grey-text);
}
.contact-form input[required]:invalid,
.contact-form select[required]:invalid {
    border-color: #8B2635;
}

/* --- Footer Minimalista --- */
footer { 
    background: var(--primary-color); 
    color: #9ca3af; 
    padding: 3rem 0 0; 
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.footer-content { 
    display: grid; 
    grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr; 
    gap: 3rem; 
    margin-bottom: 2.5rem; 
    padding: 0 0 2.5rem 0;
}

/* Sección Acerca de */
.footer-section.about {
    padding-right: 1rem;
}

.footer-section.about .logo {
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-section.about .logo:hover {
    transform: scale(1.05);
}

.footer-section.about .logo img { 
    height: 100px; 
    width: auto;
    filter: brightness(1.2);
}

.footer-section.about p { 
    margin-bottom: 2rem; 
    line-height: 1.7;
    font-size: 0.95rem;
    color: #c5c5c5;
}

/* Títulos de secciones */
.footer-section h3 { 
    margin-bottom: 1.5rem; 
    color: var(--white); 
    font-size: 1.1rem; 
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-green);
    border-radius: 1px;
}

/* Listas y enlaces */
.footer-section ul { 
    list-style: none; 
    padding: 0; 
}

.footer-section ul li { 
    padding: 0.4rem 0; 
    transition: transform 0.2s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li a { 
    color: #b8b8b8; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.footer-section ul li a:hover { 
    color: var(--primary-green); 
}

.footer-section ul li a::before {
    content: '▶';
    font-size: 0.7rem;
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--primary-green);
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

/* Información de contacto */
.footer-section.contact-info li { 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
    padding: 0.6rem 0;
}

.footer-section.contact-info i { 
    margin-top: 3px; 
    color: var(--primary-green); 
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.footer-section.contact-info span {
    color: #c5c5c5;
    font-size: 0.95rem;
}

/* Enlaces sociales mejorados */
.social-links { 
    display: flex; 
    gap: 0.8rem; 
    margin-top: 1rem;
}

.social-links a { 
    width: 42px; 
    height: 42px; 
    background: linear-gradient(135deg, #333 0%, #444 100%); 
    color: var(--white); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover { 
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%); 
    transform: translateY(-3px) scale(1.1); 
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Colores específicos para redes sociales */
.social-links a:nth-child(1):hover { background: #1877f2; } /* Facebook */
.social-links a:nth-child(2):hover { background: #1da1f2; } /* Twitter */
.social-links a:nth-child(3):hover { background: #0077b5; } /* LinkedIn */
.social-links a:nth-child(4):hover { background: #8B2635; } /* Instagram */

/* Línea divisoria animada */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-green) 20%, var(--secondary-green) 50%, var(--primary-green) 80%, transparent 100%);
    margin: 2rem 0 1.5rem 0;
    opacity: 0.6;
}

/* Footer bottom mejorado */
.footer-bottom { 
    border-top: 1px solid rgba(68, 68, 68, 0.5); 
    padding: 1.5rem 0; 
    text-align: center; 
    color: #888; 
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-bottom .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-bottom .footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom .footer-links a:hover {
    color: var(--primary-green);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    /* Footer responsive para tablets */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-section.about {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    footer {
        padding: 3rem 0 0;
    }

    /* Hero responsive */
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-buttons { justify-content: center; }
    .hero-image { display: none; }
    .hero-visuals img { display: none; } /* Ocultar imagen inicio.png en móvil */
    .feature-content-wrapper, .feature-content-wrapper.reverse { grid-template-columns: 1fr; }
    .feature-content-wrapper.reverse .feature-text-content { order: 1; }
    .feature-content-wrapper.reverse .feature-image-content { display: none; } 
    .floating-feature-image { display: none; }
    
    /* Responsive para benefits highlight */
    .benefits-highlight {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .benefit-item {
        margin-bottom: 1.2rem;
        padding: 0.6rem 0;
    }
    
    .benefit-item i {
        font-size: 1.2rem;
        width: 25px;
    }
    
    .benefit-item span {
        font-size: 0.95rem;
    }
    .contact-wrapper { grid-template-columns: 1fr; }
    .map-container { min-height: 350px; }
    .footer-content { 
        grid-template-columns: 1fr; 
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section.about {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul li:hover {
        transform: none;
    }
    
    .footer-section ul li a::before {
        display: none;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom .footer-links {
        gap: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-bottom .footer-links a {
        font-size: 0.8rem;
    }
    .plan-card.featured { transform: none; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .section-title.left-aligned, .section-subtitle.left-aligned { text-align: center; margin-left: auto; margin-right: auto; }
    
    /* Estilos responsive mejorados para el hero */
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 100px 0 40px 0;
    }
    
    .hero-container { 
        grid-template-columns: 1fr; 
        gap: 1.5rem; 
        text-align: center;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-offer {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
    
    .offer-header {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .gpt-icon {
        width: 80px;
        height: 80px;
    }
    
    .gpt-icon i {
        font-size: 2.2rem;
    }
    
    .offer-badge {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .pricing {
        gap: 0.8rem;
    }
    
    .old-price {
        font-size: 1.2rem;
    }
    
    .current-price {
        font-size: 2.4rem;
        line-height: 1;
    }
    
    .current-price small {
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .button {
        min-width: 200px;
        max-width: 280px;
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Ajustes adicionales para móviles */
    .hero-content {
        padding: 0 10px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Asegurar que el contenido no se corte */
    .hero-section .container {
        height: auto;
        min-height: auto;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        max-width: 420px;
        background: linear-gradient(145deg, rgba(16, 16, 24, 0.98) 0%, rgba(30, 30, 40, 0.95) 100%);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.3);
        transform: translateX(100%);
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 999;
        border-left: 2px solid rgba(139, 92, 246, 0.3);
        padding: 2rem 1.5rem;
        clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(139, 92, 246, 0.05) 100%);
        opacity: 0.6;
        z-index: -1;
    }
    .nav-links li {
        width: 90%;
        margin: 0.6rem 0;
        opacity: 0;
        transform: translateX(60px) rotateZ(5deg);
        transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
        perspective: 1000px;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0) rotateZ(0deg);
    }
    .nav-links li:nth-child(odd) {
        transform: translateX(60px) rotateZ(-3deg);
        align-self: flex-start;
    }
    .nav-links li:nth-child(even) {
        transform: translateX(60px) rotateZ(3deg);
        align-self: flex-end;
    }
    .nav-links.active li:nth-child(odd) {
        transform: translateX(0) rotateZ(-1deg);
    }
    .nav-links.active li:nth-child(even) {
        transform: translateX(0) rotateZ(1deg);
    }
    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.1rem 1.8rem;
        font-size: 1.15rem;
        font-weight: 600;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin: 0;
        width: 100%;
        text-align: left;
        color: #ffffff;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        letter-spacing: 0.3px;
        clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    }
    .nav-links li:nth-child(even) a {
        clip-path: polygon(0% 0%, 92% 0%, 100% 100%, 8% 100%);
    }
    .nav-links li:nth-child(3) a {
        clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    }
    .nav-links li:nth-child(5) a {
        clip-path: polygon(0% 0%, 85% 0%, 100% 100%, 15% 100%);
    }
    .nav-links a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
        transition: left 0.8s ease-in-out;
        transform: skewX(-10deg);
    }
    .nav-links a::after {
        content: '⟶';
        font-size: 1.4rem;
        opacity: 0;
        transform: translateX(-15px) scale(0.8);
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        color: rgba(139, 92, 246, 0.9);
    }
    .nav-links a:hover::before {
        left: 100%;
    }
    .nav-links a:hover::after {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    .nav-links a:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
        border: 1px solid rgba(139, 92, 246, 0.4);
        transform: translateX(12px) scale(1.03) rotateZ(1deg);
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.3);
        color: #ffffff;
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }
    .hamburger { display: block; }
    .form-group { flex-direction: column; }
    .hero-visuals img {
        display: none !important; /* Ocultar imagen inicio.png en móvil */
    }
    .container, .hero-container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Responsive para las nuevas secciones about simplificadas */
    .about-header {
        margin-bottom: 2rem;
    }
    
    .about-header .section-subtitle {
        font-size: 1rem;
        margin: 0.8rem auto 0;
    }
    
    .about-keraai-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .keraai-main-logo {
        order: -1;
    }
    
    .keraai-logo-main {
        width: 250px;
        height: 250px;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-icon {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-icon img {
        width: 45px;
        height: 45px;
    }
    
    .feature-item h3 {
        font-size: 0.95rem;
        line-height: 1.3;
        margin: 0;
    }
    
    /* Estilos legacy para compatibilidad */
    .about-keraai-simple {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .keraai-logo-simple {
        order: -1;
    }
    
    .keraai-logo {
        width: 180px;
        height: 180px;
    }
    
    .keraai-intro p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
        justify-content: center;
    }
    
    .hosting-plans {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 0 1rem 1rem 1rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE 10+ */
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    
    .hosting-plans::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Webkit */
    }
    
    .hosting-plans .plan-card {
        min-width: 280px;
        max-width: 320px;
        flex: 0 0 auto;
        scroll-snap-align: start;
        margin-bottom: 0;
    }
    
    /* Ocultar la segunda sección de planes en móvil y mover los planes al primer contenedor */
    .hosting-plans-centered {
        display: none !important;
    }
    
    /* Mostrar indicador de scroll para planes en móvil */
    .hosting-section .scroll-hint-mobile {
        display: flex !important;
    }
    .scroll-hint-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
        color: #2e8b57;
        font-size: 1.1rem;
        opacity: 0.85;
        animation: hint-bounce 1.5s infinite;
        user-select: none;
    }
    .scroll-hint-mobile i {
        font-size: 2rem;
        margin-top: 0.2rem;
        animation: arrow-move 1.5s infinite;
    }
}

/* Media query para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 30px 0;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.85rem, 5vw, 1rem);
    }
    
    .hero-offer {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .old-price {
        font-size: 1rem;
    }
    
    .hero-buttons .button {
        min-width: 180px;
        max-width: 250px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .offer-badge {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* About section para móviles muy pequeños */
    .about-header .section-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .keraai-logo-main {
        width: 180px;
        height: 180px;
    }
    
    .feature-icon {
        padding: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-icon img {
        width: 35px;
        height: 35px;
    }
    
    .feature-item h3 {
        font-size: 0.85rem;
        line-height: 1.2;
        margin: 0;
    }
}

@keyframes hint-bounce {
    0%, 100% { opacity: 0.85; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-6px); }
}
@keyframes arrow-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(12px); }
}

/* Microinteracciones y animaciones sutiles */
.button, .button-primary, .button-secondary {
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.button:hover, .button-primary:hover, .button-secondary:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
    filter: brightness(1.1);
}
.section-title, .section-subtitle {
    transition: color 0.3s, -webkit-text-fill-color 0.3s;
}

/* Accesibilidad: Mejor contraste para enlaces y botones */
a, .button, .button-primary, .button-secondary {
    outline: none;
}
a:focus, .button:focus, .button-primary:focus, .button-secondary:focus {
    outline: none;
}

body.dark-mode,
body.dark-mode p,
body.dark-mode span,
body.dark-mode li,
body.dark-mode label,
body.dark-mode .team-bio,
body.dark-mode .plan-features li,
body.dark-mode .feature-item-text p,
body.dark-mode .section-subtitle,
body.dark-mode .footer-section ul li a,
body.dark-mode .footer-section.about p {
    color: #e0e0e0 !important;
}
body.dark-mode .section-title,
body.dark-mode .section-title.left-aligned,
body.dark-mode .footer-section h3 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
body.dark-mode .button,
body.dark-mode .button-primary {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: #fff !important;
    border: none !important;
}
body.dark-mode .button-secondary {
    background: transparent !important;
    color: #D4AF37 !important;
    border: 2px solid #D4AF37 !important;
}
body.dark-mode .button-secondary:hover {
    background: #D4AF37 !important;
    color: #fff !important;
}
body.dark-mode .nav-links a,
body.dark-mode .nav-links a:visited {
    color: #e0e0e0 !important;
}
body.dark-mode .nav-links a:hover {
    color: #8b5cf6 !important;
}
/* Estilos mejorados para el menú móvil en modo oscuro */
@media (max-width: 768px) {
    body.dark-mode .nav-links {
        background: linear-gradient(145deg, rgba(10, 10, 15, 0.98) 0%, rgba(20, 20, 25, 0.95) 100%) !important;
        border-left: 2px solid rgba(139, 92, 246, 0.4) !important;
    }
    body.dark-mode .nav-links::before {
        background: linear-gradient(45deg, rgba(139, 92, 246, 0.08) 0%, rgba(168, 85, 247, 0.08) 50%, rgba(139, 92, 246, 0.08) 100%) !important;
    }
    body.dark-mode .nav-links a {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(168, 85, 247, 0.06) 100%) !important;
        border: 1px solid rgba(139, 92, 246, 0.25) !important;
        color: #ffffff !important;
    }
    body.dark-mode .nav-links a::after {
        color: rgba(139, 92, 246, 1) !important;
    }
    body.dark-mode .nav-links a:hover {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.25) 0%, rgba(168, 85, 247, 0.2) 100%) !important;
        border: 1px solid rgba(139, 92, 246, 0.5) !important;
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4) !important;
    }
}
body.dark-mode .plan-card,
body.dark-mode .gallery-item,
body.dark-mode .contact-form {
    background: #23272a !important;
    color: #e0e0e0 !important;
}
body.dark-mode .plan-card.featured {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: #fff !important;
}
body.dark-mode .gallery-overlay {
    background: linear-gradient(transparent, rgba(30, 30, 30, 0.85));
    color: #fff !important;
}
body.dark-mode .divider {
    background-color: #D4AF37 !important;
}
body.dark-mode .footer-section ul li a {
    color: #D4AF37 !important;
}
body.dark-mode .footer-section ul li a:hover {
    color: #F1C40F !important;
}
body.dark-mode .footer-bottom {
    color: #bbb !important;
    border-top: 1px solid #555;
    background: #1a1b2e !important;
}
body.dark-mode .footer-section.about p,
body.dark-mode .footer-section.contact-info span {
    color: #d0d0d0 !important;
}
body.dark-mode footer {
    background: #1a1b2e !important;
}
body.dark-mode .footer-bottom .footer-links a {
    color: #aaa !important;
}
body.dark-mode .footer-bottom .footer-links a:hover {
    color: #D4AF37 !important;
}
body.dark-mode .form-group input,
body.dark-mode .contact-form textarea {
    background: #181a1b !important;
    color: #fff !important;
    border-color: #3cb371 !important;
}
body.dark-mode .feature-item-icon {
    background-color: #D4AF37 !important;
    color: #fff !important;
}
body.dark-mode .portfolio-filters .filter {
    background: #23272a !important;
    color: #F1C40F !important;
}
body.dark-mode .portfolio-filters .filter.active,
body.dark-mode .portfolio-filters .filter:hover {
    background: #D4AF37 !important;
    color: #fff !important;
}

/* Responsive for mobile adjustments remain without toggle-specific rules */
@media (max-width: 768px) {
    /* ...existing code... */
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Asegurar que main también tenga el fondo correcto */
body.dark-mode main {
    background: #1a1b2e !important;
}

/* ──────────────────────────────────────────────────────────────
   Efectos adicionales y micro-interacciones
   ────────────────────────────────────────────────────────────── */

/* Efecto ripple para botones */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animaciones de entrada para elementos */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de foco mejorados */
.focused {
    outline: 2px solid var(--accent-blue) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2) !important;
}

/* Efecto de click para el toggle de modo oscuro */
#dark-mode-toggle.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Efectos para botones de WhatsApp */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.whatsapp-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #B8860B 0%, #996515 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.whatsapp-btn.clicked {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.whatsapp-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Efectos especiales para el plan combo VIP */
.combo-plan .whatsapp-btn {
    background: linear-gradient(45deg, #F1C40F, #E67E22) !important;
    animation: rainbow-pulse 3s ease-in-out infinite alternate;
}

.combo-plan .whatsapp-btn:hover {
    background: linear-gradient(45deg, #E67E22, #D35400) !important;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.4);
}

/* Debug styles - para verificar que los botones se detectan */
.whatsapp-btn:focus {
    outline: 3px solid #ffff00 !important;
    outline-offset: 2px !important;
}

@keyframes rainbow-pulse {
    0% { box-shadow: 0 0 12px rgba(230, 126, 34, 0.3); }
    50% { box-shadow: 0 0 18px rgba(241, 196, 15, 0.4); }
    100% { box-shadow: 0 0 12px rgba(230, 126, 34, 0.3); }
}

/* Estilos para modo oscuro */
body.dark-mode .whatsapp-btn {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
    color: white !important;
}

body.dark-mode .whatsapp-btn:hover {
    background: linear-gradient(135deg, #B8860B 0%, #996515 100%) !important;
}

/* Estilos especiales para el botón de oferta del hero */
.hero-offer-btn {
    background: linear-gradient(45deg, #D4AF37, #B8860B) !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 16px 30px !important;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
    animation: pulse-glow 2s ease-in-out infinite alternate !important;
    border: none !important;
}

.hero-offer-btn:hover {
    background: linear-gradient(45deg, #B8860B, #996515) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5) !important;
    color: #fff !important;
}

.hero-offer-btn i {
    color: #FFD700 !important;
    font-size: 1.3rem !important;
    margin-right: 0.7rem !important;
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3), 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    100% { 
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4), 0 0 0 6px rgba(212, 175, 55, 0);
    }
}

/* Estilo especial para modo oscuro del botón hero */
body.dark-mode .hero-offer-btn {
    background: linear-gradient(45deg, #D4AF37, #B8860B) !important;
    color: #fff !important;
}

body.dark-mode .hero-offer-btn:hover {
    background: linear-gradient(45deg, #B8860B, #996515) !important;
    color: #fff !important;
}

/* Efectos de partículas mejorados para modo oscuro */
body.dark-mode #particles-js {
    opacity: 0.8;
}

/* Animaciones de carga suaves */
.loading-fade {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mejoras en las sombras para elementos interactivos */
.interactive-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.interactive-shadow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Efectos de brillo para elementos destacados */
.sparkle-effect {
    position: relative;
    overflow: hidden;
}

.sparkle-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s ease;
}

.sparkle-effect:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Mejoras en la tipografía */
.enhanced-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
}

/* Efectos de hover mejorados para tarjetas */
.card-hover-effect {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 30px var(--shadow-glow);
}

/* Indicadores de carga modernos */
.modern-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);

    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mejoras en los filtros del portafolio */
.portfolio-filters .filter {
    position: relative;
    overflow: hidden;
}

.portfolio-filters .filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio-filters .filter:hover::before {
    left: 100%;
}

/* Efectos de scroll suaves */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Mejoras en la accesibilidad */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejoras para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Mejoras para pantallas de alta resolución */
}

/* Efectos de glassmorphism */
.portfolio-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.gallery-item {
    min-width: 280px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
/* Ocultar flechas de scroll en desktop - solo mostrar en móviles y tablets */
.scroll-hint-mobile {
    display: none; /* Oculto por defecto en todas las pantallas */
}

/* Mostrar solo en móviles y tablets */
@media (max-width: 768px) {
    .scroll-hint-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
        color: #D4AF37;
        font-size: 1.1rem;
        opacity: 0.85;
        animation: hint-bounce 1.5s infinite;
        user-select: none;
    }
    .scroll-hint-mobile i {
        font-size: 2rem;
        margin-top: 0.2rem;
        animation: arrow-move 1.5s infinite;
    }
}
