/* ================================================
   FRIKEA.ES - ESTILOS PRINCIPALES (Optimizado)
   ================================================ */

/* --- FUENTES GOOGLE (INTER) - Solo Latin --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1JL7W0I5nvw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1JL7W0I5nvw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- VARIABLES CSS --- */
:root {
    --primary: #f26522;
    --dark: #1a1a1a;
    --gray: #f4f4f4;
    --white: #ffffff;
    --whatsapp: #25d366;
    --email: #0078d4;
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- NAVEGACIÓN --- */
nav {
    background: var(--dark);
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    width: 100%;
}

.nav-icon {
    height: 35px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 50px;
    overflow: hidden;
    padding: 8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.02);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
}

/* --- LAYOUT --- */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

.section-gray {
    background-color: var(--gray);
}

.text-center {
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

/* --- GRIDS --- */
/* Grid para productos Top (+50€) */
.grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Grid compacto para productos pequeños (+10€) */
.grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

/* --- CARDS PRODUCTOS TOP --- */
.card-top {
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-top:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-top img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

/* --- CARDS PRODUCTOS PEQUEÑOS --- */
.card-small {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    background: white;
    transition: 0.3s;
    font-size: 0.9rem;
}

.card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.card-small img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-small h4 {
    font-size: 1rem;
    margin: 10px 0 5px 0;
    color: var(--dark);
}

/* --- PRECIOS --- */
.price-tag {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin: 10px 0;
}

.card-small .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin: 5px 0;
}

/* --- BOTONES (Optimizado) --- */
.btn, .btn-ws, .btn-primary {
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-ws {
    background: var(--whatsapp);
}

.btn-ws:hover {
    background: #128c7e;
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: #d94f1a;
}

/* --- BADGES --- */
.badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff3366;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.3);
}

/* --- SECCIÓN SERVICIOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    transition: 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* --- SECCIONES ESPECIALES (Optimizado) --- */
.buy-section, .bulk-banner {
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.buy-section {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8dd 100%);
    border: 2px dashed var(--primary);
}

.buy-section h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.buy-section ul {
    text-align: left;
    max-width: 700px;
    margin: 20px auto;
    line-height: 1.8;
}

.buy-section li {
    margin-bottom: 10px;
}

.buy-section strong {
    color: var(--dark);
}

.bulk-banner {
    background: var(--dark);
    color: white;
}

.bulk-banner h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- MAPA --- */
.map-section {
    text-align: center;
    padding: 60px 20px;
}

.map-wrapper {
    max-width: 800px;
    margin: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* --- REDES SOCIALES --- */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
    cursor: pointer;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-btn.tiktok {
    background: #000000;
    color: white;
}

.social-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.social-btn.facebook {
    background: #1877F2;
    color: white;
}

.social-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* --- FOOTER --- */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 20px;
    max-width: 1100px;
    margin: auto;
}

.footer-col h3 {
    color: var(--primary);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    padding: 8px 0;
    color: #ccc;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

.copy {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #777;
}

/* --- BOTÓN FLOTANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* --- UTILIDADES --- */
.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 55px;
        left: 0;
        background: var(--dark);
        text-align: center;
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 999;
        animation: slideDown 0.3s ease-out;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px;
        border-bottom: 1px solid #333;
        width: 100%;
        border-radius: 0;
    }

    .nav-links a:hover {
        background: var(--primary);
        transform: none;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .grid-top {
        grid-template-columns: 1fr;
    }

    .grid-small {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .container {
        padding: 40px 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .buy-section,
    .bulk-banner {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-small {
        padding: 10px;
    }

    .card-small img {
        height: 100px;
    }
}

/* Estilos específicos para la guía */
.guide-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.guide-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.breadcrumb {
    background: #f4f4f4;
    padding: 15px 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table th {
    background: var(--primary);
    color: white;
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background: #f9f9f9;
}

.guide-section {
    background: white;
    padding: 40px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.guide-section h2 {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.guide-section h3 {
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.image-comparison img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.alert-box, .danger-box, .success-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-box {
    background: #fff3cd;
    border-color: #ffc107;
}

.danger-box {
    background: #f8d7da;
    border-color: #dc3545;
}

.success-box {
    background: #d4edda;
    border-color: #28a745;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 30px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 12px 15px;
    margin: 10px 0;
    background: #f9f9f9;
    border-left: 4px solid var(--primary);
    border-radius: 5px;
}

.checklist li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

@media (max-width: 768px) {
        .guide-hero h1 {
            font-size: 1.8rem;
        }

        .image-comparison {
            grid-template-columns: 1fr;
        }
    }

/* --- ELEMENTOS VISUALES OPTIMIZADOS GUÍA --- */
.gold-box {
    background: #fdfaf0;
    border: 2px solid #d4af37;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    color: #555;
}

.gold-box strong {
    color: #d4af37;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 2rem 0;
}

.card-view {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.card-view img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-view.ok {
    border-top: 5px solid #28a745;
}

.card-view.ko {
    border-top: 5px solid var(--primary);
}

.card-label {
    display: block;
    font-weight: 900;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.expert-cta {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 4rem 0;
}

@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   PÁGINA 404 - ERROR NOT FOUND
   ================================================ */
.error-container {
    padding: 80px 20px;
    max-width: 800px;
}

.error-image {
    max-width: 300px;
    width: 100%;
    border-radius: 20px;
    margin: auto;
    display: block;
}

.error-title {
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--primary);
    margin: 20px 0 0 0;
    font-weight: 900;
}

.error-subtitle {
    margin-top: 0;
    color: var(--dark);
}

.error-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.error-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

.error-breadcrumb {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.error-breadcrumb ol {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.error-breadcrumb a {
    color: var(--primary);
}

/* Responsive para página 404 */
@media (max-width: 480px) {
    .error-title {
        font-size: 4rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

