
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #FFFFFF;
    --black: #111111;
    --gray-light: #F5F5F5;
    --gray-mid: #E0E0E0;
    --accent: #FFD54F;
    --accent-hover: #FFC107;
    --spacing: 32px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;
    --transition: 0.3s ease;
    --focus-ring: 0 0 0 3px rgba(255, 213, 79, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== SKIP LINK (accesibilidad) ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent);
    color: var(--black);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== CONTAINER (grilla 12 columnas) ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TIPOGRAFIA - Jerarquia H1 > H2 > H3 ===== */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.3;
}

p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 213, 79, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(30, 42, 30, 0.88);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.navbar-logo span {
    color: var(--accent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition);
    position: relative;
}

.navbar-links a:hover {
    color: var(--white);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-wa {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    margin-top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #2a3a2a;
}

/* Video / imagen de fondo */
.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay oscuro para contraste de texto (4.5:1+) */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(90vh - 72px);
    text-align: center;
}

.hero-content {
    max-width: 620px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--white);
}

.hero h1 .highlight {
    color: var(--accent);
    font-style: italic;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ===== CATEGORIAS ===== */
.categorias {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header p {
    max-width: 520px;
    margin: 12px auto 0;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing);
}

.categoria-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
    transition: all var(--transition);
}

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.categoria-card-img {
    width: 100%;
    height: 300px;
    background-color: var(--gray-light);
    overflow: hidden;
}

.categoria-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.categoria-card-img.molino-img img {
    object-position: center top;
}

.categoria-card-img.colgantes-img img {
    object-position: top;
}

.categoria-card:hover .categoria-card-img img {
    transform: scale(1.05);
}

.categoria-card-body {
    padding: 24px;
}

.categoria-card-body h3 {
    margin-bottom: 8px;
}

.categoria-card-body p {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.categoria-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap var(--transition);
}

.categoria-card:hover .categoria-link {
    gap: 12px;
}

.categoria-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.categoria-card:hover .categoria-link svg {
    transform: translateX(4px);
}

/* ===== SOBRE NOSOTROS ===== */
.sobre {
    padding: 80px 0;
    background-color: var(--gray-light);
}

.sobre .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.sobre-image {
    width: 100%;
    height: 380px;
    background-color: #d7e4d3;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    overflow: hidden;
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sobre-content h2 {
    margin-bottom: 20px;
}

.sobre-content p {
    margin-bottom: 16px;
}

.sobre-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.sobre-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sobre-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 213, 79, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre-feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-hover);
}

.sobre-feature div h3 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.sobre-feature div p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== CTA FINAL ===== */

.cta-final{
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 0 75px;
}

.cta-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.cta-title{
    margin-bottom: 20px;
}

.cta-btn-wsp{
    background-color: #25D366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
    justify-content: center;
    margin-top: 24px;
}

.img-content-cta{
    height: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;

}

.cta-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.container-cta{
    display: flex;
    flex-direction: row;
    gap: 64px;
    padding: 0 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #000;
    color: #fff;
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.footer-brand h3 span {
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #fff;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(228, 227, 227);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: rgba(0, 0, 0, 0.6);
    transition: fill var(--transition);
}

.footer-social a:hover svg {
    fill: var(--black);
}
.footer-social a:hover svg {
    fill: var(--black);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255);
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition);
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.55);
    }

    .categorias-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .sobre .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-image {
        height: 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: rgba(30, 42, 30, 0.98);
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }

    .navbar-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .cta-final-box {
        padding: 48px 24px;
    }
}

@media (max-width: 968px) {
  .cta-final {
    height: auto;
    flex-direction: column;
    margin: 0 20px;
    padding: 40px 0;
    gap: 40px;
  }

  .container-cta {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    .categoria-card-img {
        height: 220px;
    }
}

