* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
}

/* HERO */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.btn {
    padding: 12px 30px;
    border: 1px solid #fff;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.btn:hover {
    background: #fff;
    color: #000;
}

/* SECTIONS */
.section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.section p {
    opacity: 0.7;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.card {
    border: 1px solid #333;
    padding: 30px;
    transition: 0.3s;
}

.card:hover {
    border-color: #fff;
}

/* STATS */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat {
    font-size: 2rem;
}

/* CTA */
.cta {
    background: #111;
}

/* NAVBAR */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav a:hover {
    opacity: 0.6;
}

/* BOTÓN DONAR */
.btn-nav {
    border: 1px solid #fff;
    padding: 8px 18px;
}

.btn-nav:hover {
    background: #fff;
    color: #000;
}

/* SCROLL EFFECT */
.header.scrolled {
    background: rgba(0,0,0,0.9);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 28px;
    }
}


/* HAMBURGUESA */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 25px;
    background: #fff;
    margin-bottom: 5px;
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .nav a {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .nav.active {
        right: 0;
    }
}

@media (max-width: 768px) {

    .nav {
        display: flex;              /* 🔥 ESTO ES CLAVE */
        flex-direction: column;     /* 🔥 vertical */
        justify-content: center;
        align-items: center;

        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #000;
        transition: 0.3s;
    }

    .nav.active {
        right: 0;
    }
}


.menu-toggle span {
    transition: 0.3s;
}

/* estado activo */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 900;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
}


.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* input oculto */
.search-form {
    position: absolute;
    top: 40px;
    right: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.3s ease;
}

/* visible */
.search-form.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-form input {
    padding: 10px 15px;
    border: none;
    outline: none;
    width: 220px;
    background: #111;
    color: #fff;
    border-radius: 4px;
}

.icon-search {
    width: 20px;
    height: 20px;
    display: block;
}

.search-toggle:hover {
    opacity: 0.7;
    transform: scale(1.1);
    transition: 0.2s ease;
}

.nav {
    display: flex;
    align-items: center;
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 60px 20px 30px;
}

/* CONTENEDOR PRINCIPAL */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

/* COLUMNAS */
.footer-col {
    flex: 1;
}

/* LOGO */
.footer-logo {
    max-width: 180px;
}

/* CENTRO (links) */
.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center li {
    margin-bottom: 10px;
}

.footer-center a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-center a:hover {
    opacity: 0.7;
}

/* DERECHA (contacto) */
.footer-right p {
    margin: 0 0 10px;
}

/* INFERIOR CENTRADO */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

.section {
    padding: 80px 20px;
    background: #000;
    color: #fff;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #111;
    padding: 40px 20px;
    border-radius: 8px;
    transition: 0.3s ease;
}

/* título */
.card h3 {
    margin-bottom: 20px;
    font-weight: 500;
}

/* icono */
.card img {
    width: 50px;
    height: 50px;
    opacity: 0.8;
}

/* hover elegante */
.card:hover {
    transform: translateY(-5px);
    background: #1a1a1a;
}

.card:hover img {
    opacity: 1;
}

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

.icon {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    opacity: 0.8;
    transition: 0.3s ease;
}

.card:hover .icon {
    opacity: 1;
    transform: scale(1.1);
}

.section-light {
    background: #fff;
    color: #000;
    padding: 80px 20px;
    text-align: center;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat {
    font-size: 40px;
    font-weight: 600;
}

.stat small {
    display: block;
    font-size: 14px;
    margin-top: 8px;
    color: #555;
}

.stat {
    position: relative;
    padding: 0 20px;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: #ddd;
}

@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat:not(:last-child)::after {
        display: none;
    }
}

.section-light {
    background: #fff;
    color: #000;
    padding: 80px 20px;
    text-align: center;

    width: 100vw;                 /* 🔥 ocupa todo el viewport */
    margin-left: calc(-50vw + 50%); /* 🔥 rompe el contenedor */
}



.single-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* 🔥 clave */
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay oscuro */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* contenido encima */
.single-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.single-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}


.single-content {
    padding: 80px 20px;
}

.section-light {
    background: #fff;
    color: #000;

    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.single-content .container {
    max-width: 800px; /* 🔥 lectura cómoda */
    margin: 0 auto;
    line-height: 1.7;
}

.single-content h2,
.single-content h3 {
    margin-top: 40px;
}

.cta {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-form {
    margin-top: 40px;
}

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* INPUTS */
.cta-form input {
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

/* FOCUS elegante */
.cta-form input:focus {
    border-color: #fff;
}

/* BOTÓN */
.cta .btn {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.cta-form input::placeholder {
    color: #888;
}



.single-content p {
    margin-bottom: 20px;
}

.single-content img {
    width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 6px;
}

.cta {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.category-hero {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.category-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.category-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.category-search {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.category-search input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #fff;
    backdrop-filter: blur(10px);
    outline: none;
}

.category-search input::placeholder {
    color: rgba(255,255,255,0.7);
}

.category-search button {
    padding: 14px 22px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.category-posts {
    background: #fff;
    color: #000;

    width: 100vw;
    margin-left: calc(-50vw + 50%);

    padding: 80px 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #fff;
    overflow: hidden;
    transition: 0.3s ease;
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 12px;
}

.post-content p {
    color: #666;
    line-height: 1.6;
}

.post-card:hover {
    transform: translateY(-6px);
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .category-search {
        flex-direction: column;
    }

}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h2 {
    margin-bottom: 10px;
}


.site-footer {
    width: 100%;
  }
  
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 20px;
  }
  
  /* columnas */
  .footer-col {
    flex: 1;
    min-width: 200px;
  }
  
  /* logo */
  .footer-logo {
    max-width: 150px;
    height: auto;
  }
  
  /* links */
  .footer-center ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-center ul li {
    margin-bottom: 10px;
  }
  
  /* mobile */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }
  
    .footer-col {
      width: 100%;
    }
  }