/* 1. VARIABLES Y CONFIGURACIÓN GENERAL */
:root {
    --navy-blue: #0d1b2a;
    --dark-blue: #1b263b;
    --mid-blue: #415a77;
    --light-blue: #778da9;
    --white: #f0f2f5;
    --light-gray: #e9ecef;
    
    --striking-red: #e63946;
    --footer-purple: #4a00e0;
    --footer-pink: #8e2de2;
    --footer-red: #c31432;

    --font-main: 'Poppins', sans-serif;
    --section-padding: 8rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--navy-blue); color: var(--white); overflow-x: hidden; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
img, video { max-width: 100%; height: auto; display: block; }
.section-padding { padding: var(--section-padding) 0; }
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 4rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 1.5px; display: inline-block; }
.products-section .section-title, .carousel-section .section-title, .blog-section .section-title, .contact-section .section-title { background: linear-gradient(90deg, var(--white), var(--light-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-section .section-title { background: linear-gradient(90deg, var(--dark-blue), var(--mid-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-title span { display: inline-block; }
.text-center { text-align: center; }

/* 2. HEADER */
.main-header {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: var(--dark-blue); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: padding 0.4s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 45px; transition: height 0.4s ease; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; position: relative; padding: 5px 0; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--striking-red); transition: width 0.4s ease; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }
.search-icon i { font-size: 1.2rem; cursor: pointer; transition: color 0.3s ease; }
.search-icon i:hover { color: var(--striking-red); }
.mobile-nav-toggle { display: none; }

/* 3.  ESTRUCTURA HERO */
.video-hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000; /* Fondo negro de respaldo */
}

.video-background {
    position: relative;
    padding-bottom: 42.85%; /* 21:9 = 9/21 = 0.4285 */ 
    height: 0;
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .video-background {
        padding-bottom: 75%; /* Más alto en móviles (ej. 4:3) */
    }
}
.intro-section {
    background: linear-gradient(180deg, var(--navy-blue) 0%, var(--dark-blue) 100%);
    padding: 6rem 0;
    text-align: center;
}
.intro-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: var(--white);
}
.intro-title .word {
    display: inline-block;
}
/* 4. PRODUCTS SECTION */
.products-section {
    background: linear-gradient(160deg, var(--dark-blue) 0%, var(--navy-blue) 100%);
}
.products-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-reveal-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.products-list h2 {
    color: var(--striking-red);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: none;
    letter-spacing: 0;
    background: none;
    -webkit-text-fill-color: initial;
}

.products-list ul {
    list-style: none;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    color: var(--white);
}
.products-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--mid-blue);
}
.product-features h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.product-features p {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.product-features i { color: var(--striking-red); }

/* --- VIDEO 2 --- */
.product-video-section {
    background: linear-gradient(180deg, var(--navy-blue) 0%, #000 100%);
    padding: 0; 
}
.video-wrapper {
    max-width: 1400px; 
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* 5. ABOUT SECTION (COLLAGE) */
.about-section {
    background: linear-gradient(to bottom, var(--white) 0%, var(--light-gray) 100%);
    overflow: hidden;
}
.collage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    position: relative;
}
.collage-item {
    position: absolute;
    width: 320px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    cursor: pointer;
}
.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. CAROUSEL SECTION */
.carousel-section {
    background: linear-gradient(160deg, var(--dark-blue) 0%, var(--navy-blue) 100%);
}
.mySwiper {
    width: 100%;
    padding: 2rem 0 4rem 0;
}
.swiper-slide {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.swiper-slide img { width: 100%; height: auto; }
.swiper-pagination-bullet-active { background-color: var(--striking-red) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--striking-red) !important; }

/* 7. BLOG SECTION */
.blog-section {
    background: linear-gradient(to bottom, var(--navy-blue) 0%, #000 100%);
}
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.blog-card {
    background-color: var(--dark-blue);
    border: 1px solid var(--mid-blue);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.blog-image {
    height: 220px;
    overflow: hidden;
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-content h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--white); }
.blog-content p { color: var(--light-blue); margin-bottom: 1.5rem; flex-grow: 1; }
.read-more {
    color: var(--striking-red);
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
}
.read-more i { transition: transform 0.3s ease; }
.read-more:hover i { transform: translateX(5px); }

/* 8. SECCIÓN DE CONTACTO */
.contact-section {
    background: var(--white); 
    color: var(--dark-blue);
    padding: 2rem 1rem;
}

.contact-section .section-title {
    color: var(--dark-blue);
    background: linear-gradient(90deg, var(--dark-blue), var(--mid-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-info-block {
    order: 2; 
}

.contact-form-block {
    order: 1;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(240, 245, 250, 0.5);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info-item .text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.contact-info-item .text p {
    color: var(--mid-blue);
    line-height: 1.5;
}

.contact-form-block .form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form-block input,
.contact-form-block textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-blue);
    outline: none;
    transition: all 0.3s ease;
}

.contact-form-block textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form-block input:focus,
.contact-form-block textarea:focus {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(10, 41, 83, 0.1);
}

.contact-form-block label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--mid-blue);
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--white);
    padding: 0 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form-block input:focus + label,
.contact-form-block input:valid + label,
.contact-form-block textarea:focus + label,
.contact-form-block textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--dark-blue);
    background: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--striking-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: #c31432;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Media Queries para responsive */
@media (min-width: 768px) {
    .contact-section {
        padding: 3rem 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
    
    .contact-info-block {
        order: initial;
    }
    
    .contact-form-block {
        order: initial;
    }
    
    .contact-info-item {
        flex-direction: row;
        align-items: center;
        padding: 1rem;
    }
    
    .contact-info-item .icon {
        margin-bottom: 0;
    }
    
    .submit-btn {
        width: auto;
        padding: 1rem 2rem;
    }
}

@media (min-width: 992px) {
    .contact-section {
        padding: 4rem 2rem;
    }
    
    .contact-info-item {
        padding: 1.5rem;
    }
}

/* 8. FOOTER */
.main-footer {
    background: linear-gradient(90deg, var(--footer-purple) 0%, var(--footer-pink) 50%, var(--footer-red) 100%);
    padding: 4rem 0 2rem 0;
    text-align: center;
    color: var(--white);
}
.footer-logo img { height: 50px; margin: 0 auto 2rem auto; }
.social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; }
.social-icons a {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.social-icons a:hover { transform: scale(1.2); }
.contact-info p { margin-bottom: 0.5rem; color: var(--white); }
.contact-info a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }
.contact-info i { margin-right: 0.5rem; }
.copyright { margin-top: 2rem; color: var(--white); opacity: 0.7; font-size: 0.9rem; }


/* ... (código sin cambios) ... */
@media (max-width: 992px) {
    .products-container { grid-template-columns: 1fr; }
    .products-image { order: -1; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4rem; }
    .section-title { font-size: 2.2rem; }
    .collage-container { min-height: 120vh; }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease-in-out;
    }
    .main-nav.active { right: 0; }
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
    }
}

/* === ESTILOS BLOG === */

.blog-archive {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  padding: 1rem;
}

.blog-content h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-content p {
  color: #555;
}

/* BOTÓN VER MÁS */
.load-more {
  text-align: center;
  margin-top: 2rem;
}

.load-more a {
  padding: 0.75rem 1.5rem;
  background: #ddd;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s;
}

.load-more a:hover {
  background: #bbb;
}

/* Responsivo */
@media (max-width: 600px) {
  .blog-content h2 {
    font-size: 1rem;
  }
}


/* ===== ESTILOS ADICIONALES PARA category.php ===== */

/* Grid general de categorías */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

/* Contenedor principal de la vista */
.category-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* Título de la categoría */
.category-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-header h1 {
  font-size: 2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.category-header p {
  font-size: 1rem;
  color: #666;
}

/* Responsive adicional */
@media (max-width: 600px) {
  .blog-post-category img {
    height: 160px;
  }

  .blog-post-category h2 {
    font-size: 1rem;
  }

  .category-header h1 {
    font-size: 1.5rem;
  }
}


/*Estilos para Contenido del Blog Publicado */

/* Contenedor principal */
.contenido-principal {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Artículo del blog */
.entrada-blog {
  padding: 40px 20px;
}

/* Título del post */
.entrada-blog h1 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Contenido del post */
.contenido-entrada {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* Imágenes dentro del contenido */
.contenido-entrada img {
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

/* Meta información */
.meta {
  margin-top: 40px;
  font-size: 0.875rem;
  color: #777;
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/*Estilos de productos*/

main.pagina-normal {
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

ul.products.columns-4 {
    text-align: center;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    color: white;
}

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    background-color: var(--dark-blue);
    border: 1px solid var(--mid-blue);
    border-radius: 10px;
    padding: 1rem;
    height: 420px;
}

.woocommerce ul.products li.product .button {
    color: white;
    background-color: var(--dark-blue);
    border: 1px solid var(--mid-blue);
    border-radius: 8px;
}

input.btn-form-prd {
    background: var(--striking-red);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

select.estados {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-blue);
    outline: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

input.form-control.input-sm {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-blue);
    outline: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

textarea.form-control.input-sm {
    margin-top: 5px;
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 8px;
    background: none;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--dark-blue);
    outline: none;
    transition: all 0.3s ease;
}

