@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Estilos base */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem; /* 64px */
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero section */
.hero-bg {
    background-color: #0a0a0a;
    background-image: 
        linear-gradient(to bottom, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7)),
        url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.05"%3E%3Cpath d="M0 0h20L0 20z"/%3E%3C/g%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 188, 122, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 188, 122, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Mobile menu */
#mobile-menu {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#mobile-menu.hidden {
    transform: translateY(-100%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: linear-gradient(90deg, #e2bf60, #e2bf60);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s infinite;
}

.gold-gradient {
    background: linear-gradient(135deg, #e2bf60 0%, #e2bf60 100%);
    transition: all 0.3s ease;
}

.gold-gradient:hover {
    background: linear-gradient(135deg, #e2bf60 0%, #e2bf60 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(226, 191, 96, 0.2);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2bf60, transparent);
    opacity: 0.3;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hover-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 188, 122, 0.1);
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    transform: translateY(20px);
    transition: transform 0.5s ease-in-out;
}

.slide-up.visible {
    transform: translateY(0);
}

input, textarea {
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 191, 96, 0.2);
    background-color: rgba(10, 10, 10, 0.8);
}

input:focus, textarea:focus {
    border-color: #e2bf60;
    box-shadow: 0 0 0 2px rgba(226, 191, 96, 0.1);
    outline: none;
}

.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s, transform 0.3s;
}

.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.btn-hover-effect:hover::after {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

/* Estilos para las tarjetas de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #111827;
    border: 1px solid rgba(226, 191, 96, 0.3);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: rgba(226, 191, 96, 0.5);
    transform: translateY(-5px);
}

.service-card-header {
    background: linear-gradient(135deg, #e2bf60 0%, #e2bf60 100%);
    color: #000000;
    padding: 1.5rem;
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.service-card-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.service-card-list li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #e2bf60;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.service-card-button {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e2bf60;
    color: #e2bf60;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.service-card-button:hover {
    background-color: #e2bf60;
    color: #000000;
}

/* Estilos para FAQ */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #e2bf60;
}

.faq-arrow {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    margin-top: 0;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(226, 191, 96, 0.2);
}

/* Estilos para el botón de WhatsApp flotante */
.whatsapp-btn {
    position: relative;
    z-index: 1000;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-btn:hover {
    animation: none;
}

.whatsapp-btn:hover + .whatsapp-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(-8px);
}

@keyframes whatsapp-pulse {
    0% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% { 
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% { 
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Animación del tooltip */
.whatsapp-tooltip {
    transition: all 0.3s ease;
    font-size: 0.875rem;
    z-index: 999;
}

/* Responsive para el botón de WhatsApp */
@media (max-width: 768px) {
    #whatsapp-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .whatsapp-btn svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

/* Ajustar posición de redes sociales para evitar superposición con WhatsApp */
footer .flex.space-x-4 {
    margin-right: 5rem;
}

@media (max-width: 768px) {
    footer .flex.space-x-4 {
        margin-right: 6rem;
        justify-content: flex-start;
    }
    
    footer .border-t {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    footer .border-t .flex.space-x-4 {
        justify-content: center;
        margin-right: 0;
    }
}