* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #05AD98;
    --secondary: #878787;
    --accent: #05AD98;
    --light: #BBBFBF;
    --dark: #2A5C4E;
    --white: #ffffff;
    --gray: #f8f9fa;
    --text: #333333;
    --text-light: #2A5C4E;
    --border: #BBBFBF;
    --shadow: rgba(0, 0, 0, 0.1);
}

html { height: 100%; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--text);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ACCESIBILIDAD ===== */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--dark); color: white; padding: 8px; text-decoration: none; z-index: 10000; }
.skip-link:focus { top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.required { color: #e74c3c; }

/* ===== HEADER ===== */
header { background: var(--primary); color: white; padding: 1rem 0; box-shadow: 0 2px 10px var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 4px; text-decoration: none; color: white; }
.logo-text { display: flex; flex-direction: row; align-items: baseline; gap: 6px; line-height: 1; }
.logo-text .name { font-size: 2rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.logo-text .by { font-size: 0.9rem; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; opacity: 0.9; }
.logo-img { height: 60px; width: auto; display: block; }
nav ul { display: flex; list-style: none; gap: 25px; flex-wrap: wrap; }
nav a { color: white; text-decoration: none; font-weight: 500; padding: 8px 15px; border-radius: 5px; }
nav a:hover { background: #fee440; color: #11343D; border-radius: 5px; transition: all 0.3s ease; }
nav a:focus { background: #fee440; color: #11343D; outline: 2px solid #05AD98; outline-offset: 2px; }

/* ===== MENÚ MÓVIL ===== */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger { display: block; width: 25px; height: 3px; background: white; position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background: white; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* ===== HERO (solo home) ===== */
.hero { background: #fee440; color: #1a1a1a; padding: 80px 20px 110px; text-align: center; position: relative; overflow: hidden; }
.hero-effect { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-effect svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { .hero-effect { display: none; } }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ===== TÍTULO HERO ===== */
.hero h1 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 3px;
    position: relative;
    color: #11343D;
    text-shadow: 1px 1px 0px #05AD98, 2px 2px 0px #05AD98, 3px 3px 10px rgba(0, 0, 0, 0.25);
}

/* ===== TAGLINE HERO ===== */
.hero p {
    font-size: 1.8rem;
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    color: #05AD98;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ===== BUSCADOR ===== */
/* Por defecto: look gris visible (páginas de listado) */
.search-box { max-width: 600px; margin: 0 auto 40px; display: flex; gap: 10px; }
.search-box input { flex: 1; padding: 15px 20px; border: 2px solid var(--border); border-radius: 50px; font-size: 1rem; outline: none; background: var(--gray); box-shadow: 0 2px 8px var(--shadow); }
.search-box input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3); }
.search-box button { padding: 15px 30px; background: #05AD98; color: #fee440; border: none; border-radius: 50px; font-size: 1rem; font-weight: bold; cursor: pointer; }
.search-box button:hover { background: #000000; color: #ffffff; }
/* Dentro del hero amarillo: vuelve al look blanco original */
.hero .search-box { margin: 0 auto; }
.hero .search-box input { background: var(--white); border: none; box-shadow: none; }

/* ===== SECCIONES ===== */
.section { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-title { font-size: 2.2rem; color: var(--dark); margin-bottom: 30px; text-align: center; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent); border-radius: 2px; }

/* ===== FILTROS ===== */
.filters { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; }
.filter-btn { padding: 10px 20px; background: white; border: 2px solid var(--secondary); color: var(--primary); border-radius: 25px; cursor: pointer; font-weight: 500; }
.filter-btn:hover, .filter-btn:focus, .filter-btn.active { background: var(--primary); color: white; outline: none; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px var(--shadow); cursor: pointer; position: relative; }
.card-image { position: relative; width: 100%; height: 200px; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: #ffffff; padding: 5px 12px; border-radius: 15px; font-size: 0.85rem; font-weight: bold; }
.card-content { padding: 20px; }
.card-title { font-size: 1.3rem; color: var(--dark); margin-bottom: 10px; }
.card-description { color: var(--text-light); margin-bottom: 15px; line-height: 1.5; }
.card-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #eee; font-size: 0.9rem; color: #2A5C4E; }
.card-price { color: var(--accent); font-weight: bold; font-size: 1.2rem; }

/* ===== AVISO PREMIUM "VER WEB" ===== */
.card-premium-badge { position: absolute; top: 15px; right: 15px; background: #fee440; color: #11343D; padding: 5px 12px; border-radius: 15px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

/* ===== MODALES ===== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 15px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 30px; position: relative; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; cursor: pointer; color: #666; }
.modal-close:hover, .modal-close:focus { color: var(--dark); }
.detalle-img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 8px; margin-bottom: 20px; }

/* ===== FORMULARIOS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--dark); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(5,173,152,0.15); }
.btn-submit { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; }
.btn-submit:hover, .btn-submit:focus { background: var(--dark); }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: white; padding: 40px 20px 20px; margin-top: 60px; }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-section h3 { margin-bottom: 15px; color: var(--accent); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img { height: 50px; width: auto; margin-bottom: 12px; }
.footer-section p, .footer-section a { color: #ccc; text-decoration: none; line-height: 2; display: block; }
.footer-section a:hover, .footer-section a:focus { color: var(--accent); text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav { display: none; width: 100%; margin-top: 20px; }
    nav.active { display: block; }
    nav ul { flex-direction: column; gap: 10px; }
    nav a { display: block; padding: 12px 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.3rem; }
    .section-title { font-size: 1.8rem; }
    .search-box { flex-direction: column; }
    .logo-img { height: 45px; }
    .logo-text .name { font-size: 1.4rem; }
    .cards-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero { padding: 60px 15px 90px; }
    .section { margin: 40px auto; }
    .modal-content { padding: 20px; }
}
@media print {
    .menu-toggle, .modal { display: none !important; }
    header { position: static; background: white; color: black; }
    .hero { background: white; color: black; }
}

/* ============================================================
FOTO DEL DÍA — bloque editorial grande, foto a ancho completo
============================================================ */
.foto-destacada { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.foto-destacada-titulo { font-family: 'Clash Display', sans-serif; font-size: 2.2rem; color: var(--dark); margin-bottom: 20px; }
.foto-destacada-img {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    background: url('https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1400&q=75&auto=format&fit=crop') center/cover no-repeat;
}
.foto-destacada-caption { margin-top: 16px; font-size: 1.1rem; color: var(--accent); font-weight: 600; }
@media (max-width: 768px) {
    .foto-destacada-titulo { font-size: 1.6rem; }
    .foto-destacada-img { height: 300px; }
}
@media (max-width: 480px) {
    .foto-destacada-img { height: 220px; border-radius: 8px; }
}

/* ============================================================
LANDING DE COMERCIO — mini web individual por negocio
============================================================ */
.detalle-hero { width: 100%; height: 320px; background-size: cover; background-position: center; position: relative; }
.detalle-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%); display: flex; align-items: flex-end; padding: 30px 20px; }
.detalle-hero-info { max-width: 1200px; margin: 0 auto; width: 100%; color: white; }
.detalle-hero-badge { display: inline-block; background: var(--accent); padding: 5px 14px; border-radius: 15px; font-size: 0.85rem; font-weight: bold; margin-bottom: 10px; }
.detalle-hero-info h1 { font-family: 'Clash Display', sans-serif; font-size: 2.4rem; }
.detalle-body { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.detalle-descripcion h2 { color: var(--dark); margin-bottom: 15px; }
.detalle-descripcion p { color: var(--text); line-height: 1.7; margin-bottom: 25px; }
.detalle-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.detalle-galeria img { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; }
.detalle-sidebar { background: var(--gray); border-radius: 12px; padding: 25px; height: fit-content; }
.detalle-sidebar-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.detalle-sidebar-item .icon { font-size: 1.2rem; }
.detalle-sidebar-item strong { display: block; color: var(--dark); font-size: 0.9rem; }
.detalle-sidebar-item span { color: var(--text); font-size: 0.95rem; }
.btn-whatsapp { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 1500; animation: pulse-whatsapp 2s infinite; }
.btn-whatsapp svg { width: 32px; height: 32px; fill: white; }
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}