/* ===========================
   Rancho Ojo Prieto - Custom Styles
   =========================== */

/* ===========================
   Fuentes - Galano Grotesque
   =========================== */
@font-face {
    font-family: 'Galano Grotesque';
    src: url('../assets/fonts/GalanoGrotesqueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../assets/fonts/GalanoGrotesqueRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../assets/fonts/GalanoGrotesqueSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../assets/fonts/GalanoGrotesqueBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Galano Grotesque';
    src: url('../assets/fonts/GalanoGrotesqueExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Variables CSS */
:root {
    --rop-brown: #8B4513;
    --rop-cream: #F5E6D3;
    --rop-green: #6B8E23;
    --rop-dark: #3E2723;
    --text-dark: #1f2937;
    --text-light: #6b7280;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Galano Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Header con efecto al hacer scroll */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out;
}

/* Efectos hover para tarjetas */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Botones personalizados */
.btn-primary {
    background: linear-gradient(135deg, var(--rop-brown), var(--rop-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

/* WhatsApp floating button animation */
#whatsappFloat {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Navegación activa */
.nav-link {
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rop-brown);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Secciones con parallax suave */
section {
    position: relative;
}

/* Gradientes personalizados */
.gradient-brown {
    background: linear-gradient(135deg, var(--rop-brown), var(--rop-dark));
}

.gradient-cream {
    background: linear-gradient(135deg, var(--rop-cream), #ffffff);
}

/* Tipografía mejorada */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Sombras personalizadas */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

/* Loader (por si lo necesitas) */
.loader {
    border: 3px solid var(--rop-cream);
    border-top: 3px solid var(--rop-brown);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive utilities */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    #whatsappFloat {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Accesibilidad */
:focus-visible {
    outline: 2px solid var(--rop-brown);
    outline-offset: 2px;
}

/* Mejora de rendimiento */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Transiciones suaves globales */
a, button {
    transition: all 0.3s ease;
}

/* Scrollbar personalizado (webkit) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--rop-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--rop-brown);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rop-dark);
}
