/* ----------------------------------------- */
/* Fonts and Base Styles */
/* ----------------------------------------- */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('./fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('./fonts/CormorantGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('./fonts/CormorantGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}
/* ----------------------------------------- */
/* Mobile Menu and Navigation Styles */
/* ----------------------------------------- */
/* Navegación Principal */

#stickyNav.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Enlaces de Navegación */
.nav-link {
    position: relative;
    backface-visibility: hidden;
    display: flex; /* Para permitir centrado vertical */
    align-items: center; /* Centrar verticalmente */
    padding: 0.5rem 1rem; /* Añadir un poco de padding para mejor clickabilidad */
    border-radius: 0.25rem; /* Bordes redondeados opcionales */
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b7355;
    transition: width 0.3s ease;
  }

.nav-link:hover {
    background-color: rgba(139, 115, 85, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #8b7355;
    background-color: rgba(139, 115, 85, 0.1);
}

.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

/* Estilos para el botón hamburguesa */
.hamburger-icon {
    width: 20px;
    height: 16px;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
    transform-origin: left center;
}

.hamburger-icon span:nth-child(2) {
    top: 7px;
    transform-origin: left center;
}

.hamburger-icon span:nth-child(3) {
    top: 14px;
    transform-origin: left center;
}

/* Animación del botón hamburguesa */
.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: -1px;
    left: 3px;
}

.hamburger-icon.active span:nth-child(2) {
    width: 0;
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
    left: 3px;
}

/* Menú Móvil */
.mobile-menu-container {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 40;
    transform: translateX(100%); /* Fuera de la pantalla por defecto */
    visibility: hidden; /* Oculto inicialmente */
    transition: transform 0.3s ease-in-out, visibility 0.3s linear; /* Transición suave */
}


.mobile-menu-container.active {
    transform: translateX(0); /* Entra a la pantalla */
    visibility: visible; /* Asegura que sea visible */
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.mobile-link {
    font-size: 1.25rem;
    color: #8b7355;
    text-decoration: none;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link:hover {
    background: rgba(139, 115, 85, 0.1);
}

/* Clase de utilidad para ocultar elementos */
.hidden {
    display: none !important;
}
#mobileMenuButton {
    margin-left: auto !important;
    position: absolute;
    right: 20px;
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex !important;
    }
    
    .lg\:hidden {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .nav-link {
        display: none;
    }
    
    .mobile-menu-container {
        visibility: hidden;
    }
}

/* ----------------------------------------- */
/* Logo Nav */
/* ----------------------------------------- */
/* Estilos para el logo */
.nav-link img {
    display: block;
    height: 3.5rem; /* Ajusta el tamaño según tus necesidades */
    width: auto;
  }

.logo-container {
    transition: all 0.3s ease;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .logo-container img {
        height: 40px;
    }
}

/* Efecto hover para el logo */
.logo-container:hover img {
    transform: scale(1.05);
}

/* ----------------------------------------- */
/* Parallax and Header Styles */
/* ----------------------------------------- */

/* Preview Cards */
.preview-card {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* Section Transitions - NEW */
.section {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.section.entering {
    transform: translateY(20px);
    opacity: 0;
}

.section.visible {
    transform: translateY(0);
    opacity: 1;
}

section:target {
    animation: highlight 1s ease-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(139, 115, 85, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

/* Shadows and Effects */
.shadow-soft {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Estilos de fondo */
[style*="background-image"] {
    background-size: cover;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Animaciones de entrada */
.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}


/* Delays */
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* Keyframes para animaciones de entrada */
@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para pétalos flotantes */
.floating-petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: floatPetal 15s infinite linear;
}

.petal-1 { left: 15%; top: 20%; animation-delay: 0s; }
.petal-2 { left: 25%; top: 40%; animation-delay: -3s; }
.petal-3 { right: 35%; top: 30%; animation-delay: -6s; }
.petal-4 { right: 25%; top: 60%; animation-delay: -9s; }
.petal-5 { left: 40%; top: 70%; animation-delay: -12s; }

@keyframes floatPetal {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Efecto parallax en scroll */
.parallax-element {
    will-change: transform;
    transition: transform 0.2s ease-out;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .parallax-element img {
        width: 40vw;
        max-width: 200px;
    }
}


/* ----------------------------------------- */
/* Button Styles */
/* ----------------------------------------- */
/* Actualización de estilos de botones */
.primary-btn {
    background-color: #8b7355;
    color: white;
    padding: 0.75rem 1.5rem;  /* Padding más pequeño en móvil */
    border-radius: 9999px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(139, 115, 85, 0.2);
    width: 100%;  /* Ancho completo en móvil */
    max-width: 300px;  /* Máximo ancho para evitar botones demasiado anchos */
    min-height: 48px;  /* Altura mínima para mejor tacto */
    font-size: 0.875rem;  /* Tamaño de fuente más pequeño en móvil */
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.primary-btn .icon {
    font-size: 1.25rem;  /* Tamaño de icono más pequeño en móvil */
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

/* Efecto hover */
.primary-btn:hover {
    background-color: #6d5a43;
    transform: translateY(-2px);
}

/* Efecto active para mejor feedback táctil */
.primary-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(139, 115, 85, 0.2);
}

/* Ripple effect para feedback táctil */
.primary-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 0 0;
    opacity: 0;
    transition: transform 0.3s, opacity 0.5s;
}

.primary-btn:active::after {
    transform: scale(20);
    opacity: 0.3;
    transition: 0s;
}

/* Media queries para tablets */
@media (min-width: 768px) {
    .primary-btn {
        width: auto;  /* Ancho automático en tablets y desktop */
        padding: 1rem 2rem;  /* Padding más grande */
        font-size: 1rem;  /* Fuente más grande */
    }

    .primary-btn .icon {
        font-size: 1.5rem;  /* Icono más grande */
    }
}

/* Media queries para pantallas muy pequeñas */
@media (max-width: 360px) {
    .primary-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .primary-btn .icon {
        font-size: 1rem;
    }
}

/* Estilos para estado de carga o deshabilitado */
.primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #a8a8a8;
}

/* Ajuste para botones dentro de contenedores flex */
.flex .primary-btn {
    flex: 1;
    max-width: none;
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid #8b7355;
    color: #8b7355;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    min-width: 200px;
    height: 48px;
    justify-content: center;
    letter-spacing: 0.5px;
}

.secondary-btn:hover {
    background-color: rgba(139, 115, 85, 0.1);
}


/* ----------------------------------------- */
/* Icon and Scroll Styles */
/* ----------------------------------------- */
.icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.scroll-indicator {
    animation: bounce 2s infinite;
    color: rgba(139, 115, 85, 0.8);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Icon Animation Enhancement */
.group:hover .icon.group-hover\:rotate-12 {
    transform: rotate(12deg);
}

.group:hover .icon.group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ----------------------------------------- */
/* Template and Category Styles */
/* ----------------------------------------- */
.template-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.template-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.category-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-tab.active {
    background-color: #8b7355;
    color: white;
}

.category-tab:not(.active) {
    background-color: #f3f4f6;
    color: #4b5563;
}

.category-tab:hover:not(.active) {
    background-color: #e5e7eb;
}

/* ----------------------------------------- */
/* Category Cards Styles */
/* ----------------------------------------- */
.category-card {
    width: 100%;
    height: 320px;
    background: white;
    border-radius: 32px;
    padding: 3px;
    position: relative;
    box-shadow: rgba(139, 115, 85, 0.1) 0px 70px 30px -50px;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 29px;
    overflow: hidden;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease-in-out;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease-in-out;
}

.icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.9;
    transition: all 0.5s ease-in-out;
    z-index: 2;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(139, 115, 85, 0.95);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.5s ease-in-out;
    z-index: 3;
}

.category-title {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    font-family: 'Cormorant Garamond', serif;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.view-more-btn {
    background: white;
    color: #8b7355;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Hover Effects */
.category-card:hover {
    transform: translateY(-5px);
}

.category-card:hover .card-content {
    transform: translateY(0);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-card:hover .icon-overlay {
    transform: translate(-50%, -80%) scale(0.8);
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .category-card {
        height: 280px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
    }
}

/* ----------------------------------------- */
/* Benefit Card Styles */
/* ----------------------------------------- */
.benefit-card {
    text-align: center;
    padding: 1.5rem;
    background-color: #f9f6f3;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(139, 115, 85, 0.1);
}

/* Agregar en la sección de Category Tab Styles */
@media (max-width: 768px) {
    #categoryTabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        overflow-x: visible;
    }

    .category-tab {
        width: 100%;
        min-width: 0;
        padding: 0.75rem;
        font-size: 0.875rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        white-space: normal;
    }

    .category-tab .icon {
        font-size: 1.25rem;
        margin: 0 0 0.25rem 0;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .category-tab {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}



/* ----------------------------------------- */
/* proceso de pago */
/* ----------------------------------------- */
/* Agregar estos estilos a tu archivo CSS */
.pricing-card {
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

/* Efecto especial para el plan destacado */
@media (min-width: 768px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .pricing-card {
        transform: none !important;
    }
    
    .pricing-card:hover {
        transform: translateY(-5px) !important;
    }
}




/* ----------------------------------------- */
/* Chatbot Styles - Actualizado */
/* ----------------------------------------- */
.floating-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Estado del chat */
.chat-status {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Botón del chat */
.chat-toggle {
    background: #8b7355;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-toggle:hover {
    transform: translateY(-2px);
    background: #6d5a43;
}

/* Ventana del chat */
.chat-window {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-header {
    background: #8b7355;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-window.hidden {
    display: none;
}

.message {
    max-width: 80%;
    margin-bottom: 0.5rem;
}

.message.bot {
    margin-right: auto;
}

.message.user {
    margin-left: auto;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    background: #f3f4f6;
}

.message.user .message-bubble {
    background: #8b7355;
    color: white;
}

/* Opciones rápidas */
.quick-options {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    background: #f9fafb;
}

.quick-option {
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Input del chat */
.chat-input {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
    background: white;
}

.message-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
}

.message-input:focus {
    border-color: #8b7355;
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.1);
}

.send-message {
    background: #8b7355;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-message:hover {
    background: #6d5a43;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 80vh;
        border-radius: 1rem 1rem 0 0;
    }

    .floating-chat-btn {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Utilidades adicionales */
.hidden {
    display: none !important;
}

/* ----------------------------------------- */
/* Responsive Adjustments */
/* ----------------------------------------- */
@media (max-width: 768px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-element {
        width: 120px !important;
        height: 160px !important;
    }
    
    .preview-card {
        width: 200px !important;
        height: 250px !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .sticky-nav-container {
        padding: 0.5rem 0;
    }
    
    html {
        scroll-padding-top: 3.5rem;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* ----------------------------------------- */
/* Utility Classes */
/* ----------------------------------------- */
.bg-white\/95 {
    background-color: rgba(255, 255, 255, 0.95);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04),
                0 0 50px rgba(139, 115, 85, 0.1);
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Asegurar que el menú móvil se alinee correctamente */

.min-h-screen {
    position: relative;
    overflow-x: hidden;
}

.container {
    position: relative;
    left: 0;
    right: 0;
}

section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* ----------------------------------------- */
/* Manejo Táctil */
/* ----------------------------------------- */

/* Mejorar la experiencia táctil */
@media (max-width: 768px) {
    /* Evitar selección de texto durante los swipes */
    * {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    /* Mejorar el feedback táctil en botones */
    button, .nav-link, .template-card {
        cursor: pointer;
        touch-action: manipulation;
    }

    /* Añadir efecto de presión */
    button:active, .nav-link:active {
        transform: scale(0.95);
    }

    /* Mejorar el scroll snapping */
    .section {
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

    html {
        scroll-snap-type: y proximity;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mejorar la interactividad de las tarjetas */
    .template-card {
        touch-action: pan-y pinch-zoom;
    }
}

/* Animación de feedback táctil */
@keyframes touchRipple {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.touch-ripple {
    position: relative;
    overflow: hidden;
}

.touch-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: touchRipple 0.6s linear;
}
/* ----------------------------------------- */
/* Animaciones y Efectos Táctiles Mejorados */
/* ----------------------------------------- */

/* Animaciones base para elementos */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Feedback táctil */
.touch-active {
    transform: scale(0.98);
    transition: transform 0.2s ease;
    will-change: transform;
}

/* Efecto Ripple para interacciones táctiles */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .animate-ready {
        transform: translateY(10px);
    }

    /* Mejorar la suavidad de las animaciones en móvil */
    .touch-active {
        transition: transform 0.15s ease;
    }

    /* Optimizar el efecto ripple para móviles */
    .ripple-effect {
        animation-duration: 0.4s;
    }
}

/* Prevenir selección de texto durante interacciones táctiles */
.touch-element {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

/*-----------------------------------------*/ 
 /* Estilos para la sección de proceso */
 /*-----------------------------------------*/ 
.how-it-works {
    background: #f9f9f9;
    padding: 4rem 0;
}

.process-step {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step.active {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(139, 115, 85, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #8b7355;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(139, 115, 85, 0.2);
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #8b7355;
}

.process-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.process-description {
    color: #666;
    line-height: 1.6;
}

/* Líneas conectoras en desktop */
@media (min-width: 768px) {
    .process-step::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -30%;
        width: 60%;
        height: 2px;
        background: #8b7355;
        opacity: 0.2;
    }

    .process-step:last-child::after {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-step {
        margin-bottom: 3rem;
    }

    .process-step:last-child {
        margin-bottom: 0;
    }
}

/*-----------------------------------------*/ 
 /* FAQ */
 /*-----------------------------------------*/ 
 .faq-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
}
.faq-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.faq-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.faq-item:hover {
    background: #f1ebe5;
}
.faq-item h3 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    color: #8b7355;
}
.faq-icon {
    font-weight: bold;
    font-size: 20px;
    color: #8b7355;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-content {
    display: none;
    margin-top: 10px;
    color: #444;
}
.faq-item.active .faq-content {
    display: block;
}

/* ---------------------- */
/* footer */
/* ---------------------- */
.footer {
    background: #fce9f5; /* Color oscuro similar al resto del diseño */
    color: #000000;
    padding: 10px 20px;
    text-align: center;
    font-family: 'Avenir', sans-serif;
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .footer-logo-image{
    width: 350px;
    height: auto;
    margin-left: 5%;

  }
  
  
  /* Enlaces de redes sociales */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Iconos en blanco */
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .social-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  }
  
  /* Derechos reservados */
  .footer-copyright {
    font-size: 0.9rem;
    color: #000000;
    margin-top: 10px;
  }
  
  /* 📌 Responsividad */
  @media (max-width: 768px) {
    .footer-signature {
      font-size: 1.5rem;
    }
  
    .social-icon {
      width: 25px;
      height: 25px;
    }
  
    .footer-copyright {
      font-size: 0.8rem;
    }
  
    .footer-logo-image{
      width: 200px;
      height: auto;
    
    }
  }
  
  @media (max-width: 480px) {
    .footer-signature {
      font-size: 1.3rem;
    }
  
    .footer-logo-image{
      width: 200px;
      height: auto;
    
    }
  
    .social-icon {
      width: 20px;
      height: 20px;
    }
  
    .footer-copyright {
      font-size: 0.7rem;
    }
  }