/*
    Theme Name: amor
    Theme URI: 
    Author: Leonardo Ruiz
    Author URI: 
    Description: Theme Diseñado para el Brujos
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: Textiles, Hilos, agujas, telas, css grid, mobile first
    Text Domain: Creaciones DAES
*/

/* Variables globales */
:root {
    --primary-color: #8B5E3B; /* Marrón cálido */
    --secondary-color: #A67C52; /* Marrón suave */
    --dark-color: #333; /* Gris oscuro */
    --light-color: #E0DEDE; /* Gris claro */
    --text-color: #4B2E2E; /* Marrón rojizo */
    --hover-color: #7D5A4F; /* Marrón grisáceo */
    --whatsapp-color: #25d366; /* Verde de WhatsApp */
    --whatsapphover-color: #137738; /* Verde de WhatsApp */
    --color-blanco  : #fff;
    --background: #bcce00;
    --swiper-theme-color: #bcce00;
    

    
}

/* Reseteo básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Estilos generales */
html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px */
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    line-height: 2;
    background-color: var(--light-color);
    color: var(--text-color);
}
/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--dark-color);
    line-height: 1.2;
}
h1 { font-size: 6rem; }
h2 { font-size: 4.8rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 2.4rem; }

@media (max-width: 768px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3.2rem; }
    h3 { font-size: 2.4rem; }
    h4 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.4rem; }
}
/* Globales */
p {
    color: var(--text-color);
    font-size: 1.8rem;
    line-height: 1.5;
}

.site-footer p {
    font-size: 1.4rem;
    color: var(--color-blanco);
}
.social-links P {
    color: var(--color-blanco);
    font-size: 1.6rem;
    transition: color 0.3s ease-in-out;
    
    
}

@media (max-width: 480px) {
    p { font-size: 1.2rem; }
}

a { text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.main-content {
    /* Ya no necesita padding-top porque el header no está fixed */
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ====== DIVISOR ENTRE SECCIONES ====== */
.section-divider {
    width: 80%; /* No ocupa todo el ancho */
    margin: 1rem auto; /* Espaciado arriba y abajo */
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent); /* Efecto difuminado */
    opacity: 0.6; /* Hace que sea más sutil */
}

/* ====== TOPBAR DE REDES SOCIALES ====== */
/* Topbar de redes sociales */
.topbar {
    position: relative; /* CAMBIADO: de fixed a relative */
    background: var(--background);
    padding: 1rem 0;
    text-align: right;
    width: 100%;
    z-index: 1001;
}

.topbar.sticky { 
    background: var(--light-color); 
}

.topbar .social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    padding-right: 2rem;
}

.topbar .social-links a {
    color: var(--color-blanco);
    font-size: 1.8rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.topbar .social-links a:hover {
    color: #f04;
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.5);
}

.topbar:hover { 
    background: #444; 
}

@media (max-width: 768px) {
    .topbar {
        text-align: center;
        padding: 0.5rem 0;
    }

    .topbar .social-links {
        justify-content: center;
        gap: 1rem;
        padding-right: 0;
    }

    .topbar .social-links a {
        font-size: 1.6rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Header */
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
    padding: 1rem; /* REDUCIDO: de 3rem a 2rem */
    width: 100%;
    transition: background 0.3s ease-in-out;
    z-index: 1000;
}

/* OPCIONAL: Mantener efecto sticky solo al hacer scroll */
.header.sticky { 
    position: sticky;
    top: 0;
    background: var(--color-blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header:hover { 
    background: var(--background); 
}

.header.scrolled {
    background: rgba(51, 51, 51, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.containerhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto; /* CAMBIADO: removido el margin-top */
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .containerhead {
        padding: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .containerhead {
        padding: 0 0.5rem;
        flex-direction: column;
        gap: 1rem;
    }
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
}

.site-text:hover { color: var(--light-color); }

.logo img {
    width: 16rem;
    margin-top: 0.5rem;
    transition: transform 0.5s ease-in-out;
    animation: logoEntrance 1s ease-in-out;
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo img:hover { transform: scale(1.1) rotate(5deg); }

.navbar { display: flex; flex-direction: column; justify-content: center; }
.nav-menu .current_page_item { border-bottom: 3px solid var(--light-color); }

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-size: 1.6rem;
    padding: 1rem;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    border-radius: 0.4rem;
}

.nav-menu a:hover {
    color: var(--color-blanco);
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 2.4rem;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle:hover { transform: rotate(90deg); }

@media (max-width: 768px) {
    .containerhead { flex-direction: column; align-items: center; }
    .navbar.active { display: flex; opacity: 1; transform: translateY(0); }
    .nav-menu { flex-direction: column; gap: 1rem; }
    .nav-menu a {
        text-align: center;
        font-size: 2.2rem;
        padding: 0.5rem;
        color: var(--color-blanco);
    }
    .menu-toggle { display: block; }
}



.footer {
    background: #0073aa;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}


/* Estilos para las secciones */
.section-one .row, .section-three .row {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.col-half {
    width: 50%;
}

.col-third {
    width: 33.33%;
}

.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-two, .section-four {
    padding: 40px 0;
    text-align: center;
}



/* Sección 1 con Flexbox */
/* ====== SECCIÓN CON FONDO ====== */
/* Sección 1 */
.section-one {
    background: url('<?php echo get_template_directory_uri(); ?>/img/fondo-section-one.jpg') no-repeat center center;
    background-size: cover;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}

.row-marca {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 2rem;
}

.datos-marca {
    flex-basis: 60%;
    display: flex;
    justify-content: center;
}

.card-marca {
    background: transparent;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 50rem;
}

.card-marca p { color: var(--dark-color); }

.imagen-marca {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
}

.imagen-marca img {
    width: 100%;
    max-width: 35rem;
    object-fit: cover;
    border-radius: 1rem;
    animation: float 3s ease-in-out infinite;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--whatsapp-color);
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
    box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
}

.btn-whatsapp img {
    width: 3rem;
    height: 3rem;
}

.btn-whatsapp:hover { background: var(--whatsapphover-color); }

@media (max-width: 1024px) {
    .row-marca { gap: 1rem; }
    .datos-marca { flex-basis: 55%; }
    .imagen-marca { flex-basis: 45%; }
}

@media (max-width: 768px) {
    .row-marca {
        flex-direction: column;
        text-align: center;
    }
    .datos-marca, .imagen-marca { width: 100%; }
    .card-marca { max-width: 100%; }
}

/* ====== EFECTO DE MOVIMIENTO SUAVE ====== */
/* Animaciones */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}


/* Estilos optimizados para la Sección 3 con mejor diseño responsivo y fondo degradado */

/* Sección 3 - Marcas */
.section-three {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.listado-marcas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    padding: 0;
    justify-items: center;
    align-items: center;
}

.listado-grid-marcas {
    background: transparent;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.listado-grid-marcas:hover {
    transform: translateY(-0.5rem) rotate(3deg);
    box-shadow: 0 1.5rem 2.5rem rgba(0, 0, 0, 0.2);
}

.listado-grid-marcas a {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.listado-grid-marcas-item-imagen {
    overflow: hidden;
    width: 100%;
    max-width: 15rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.listado-grid-marcas-item-imagen img {
    width: 100%;
    border-radius: 1.5rem;
    transition: transform 0.4s ease;
}

.listado-grid-marcas-item-contenido { margin-top: 1rem; text-align: center; }
.listado-grid-marcas-item-titulo {
    font-size: 1rem;
    font-weight: bold;
    color: #222;
    margin: 0.5rem 0 0;
}

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

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

/* Sección 4 Estilos optimizados para Testimoniales en Móviles y Escritorio con SwiperJS */

/* ===========================
   SECCIÓN TESTIMONIOS (GENERAL)
=========================== */
/* Sección 4 - Testimoniales */
.section-four {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 60% 30%;
    align-items: center;
    width: 100%;
    gap: 5%;
}

.testimonial-carousel { width: 100%; overflow: hidden; }

.swiper {
    width: 100%;
    padding: 2rem 0;
}

.swiper-wrapper { display: flex; box-sizing: border-box; }

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--color-blanco);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    height: 35rem;
    text-align: center;
}

.testimonial-image {
    width: 10rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    padding: 1rem;
}

.testimonial-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 0.5rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    max-width: 80%;
    margin: 0 auto;
    flex-grow: 1;
}

.col-four {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-blanco);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: center;
}

.testimonial-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #222;
}

.testimonial-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .testimonial-grid { grid-template-columns: 1fr; gap: 3rem; }
    .testimonial-card { width: calc(100% / 2 - 2rem); height: auto; }
}

@media (max-width: 768px) {
    .testimonial-card { width: 100%; }
}
/* Productos */
.products {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.products h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.listado-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 2rem;
    padding: 0;
}

.stado-grid-productos {
    background: var(--color-blanco);
    border-radius: 1rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.stado-grid-productos:hover { transform: translateY(-0.5rem); }

.stado-grid-productos a {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listado-grid-productos-item-imagen { overflow: hidden; }

.listado-grid-productos-item-imagen img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.stado-grid-productos:hover .listado-grid-productos-item-imagen img { transform: scale(1.1); }

.listado-grid-productos-item-contenido { padding: 1.5rem; }

.listado-grid-productos-item-titulo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #222;
}

.listado-grid-productos-item-extracto {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    max-height: 4.2em;
    position: relative;
}

.listado-grid-productos-item-extracto::after {
    content: "...";
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--color-blanco);
    padding-left: 0.5rem;
}

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

@media (max-width: 480px) {
    .listado-productos { grid-template-columns: 1fr; }
}


/* Estilos de paginas*/
/* ============================= */
/* ESTILOS GENERALES */
/* ============================= */
.page-content { padding: 4rem 2rem; }

/* ============================= */
/* IMAGEN DESTACADA */
/* ============================= */
.page-thumbnail { text-align: center; margin-bottom: 3rem; }

.page-thumbnail img {
    max-width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
}

/* ============================= */
/* SECCIÓN CON CONTENIDO E IMAGEN */
/* ============================= */
.page-content-wrapper {
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    margin-top: 3rem;
    padding: 2rem;
}

/* ============================= */
/* GRID PARA CONTENIDO E IMAGEN */
/* ============================= */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* ============================= */
/* CONTENEDOR DE LA IMAGEN */
/* ============================= */
.content-image.blurred-image {
    flex: 1;
    display: flex;
    justify-content: center; /* Centrar horizontalmente */
    align-items: center; /* Centrar verticalmente */
    width: 60rem; /* Ajusta el ancho */
    height: 30rem; /* Ajusta la altura */
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin: auto; /* Asegura que el contenedor esté centrado */
}

/* Imagen dentro del contenedor */
.content-image.blurred-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}


/* ============================= */
/* CONTENIDO A LA DERECHA */
/* ============================= */
/* ============================= */
/* EFECTO DE APARICIÓN SUAVE */
/* ============================= */
.page-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0; /* Inicialmente invisible */
    transform: translateY(20px); /* Ligeramente desplazado hacia abajo */
    animation: fadeInUp 0.8s ease-in-out forwards;
}

/* Definición de la animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================= */
/* EFECTO HOVER */
/* ============================= */
.content-image.blurred-image img:hover {
    transform: scale(1.05);
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */
.content-image.blurred-image img:hover { transform: scale(1.05); }

@media (max-width: 768px) {
    .page-content-wrapper { flex-direction: column; }
    .content-grid { grid-template-columns: 1fr; text-align: center; }
    .content-image.blurred-image { width: 100%; height: auto; }
    .content-image.blurred-image img { height: auto; }
    .page-body { padding: 0 1rem; }
}

/* ============================= */
/* SLIDER SWIPER ESTILOS */
/* ============================= */
.page-slider {
    width: 100%;
    max-width: 1200px; /* Ancho máximo del slider */
    height: 40rem; /* Altura del slider */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.page-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ajusta la altura para que todas las imágenes se adapten */
}

.page-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen para que ocupe todo el espacio */
    border-radius: 10px;
}

/* Responsive: Ajustar altura en pantallas más pequeñas */
@media (max-width: 768px) {
    .page-slider {
        height: 30px; /* Reducir la altura en móviles */
    }
}

/* ============================= */
/* FOOTER ESTILOS */
/* ============================= */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================= */
/* TÍTULOS ARRIBA */
/* ============================= */
.footer-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;  
    color: var(--color-blanco);
    text-transform: uppercase;
}

/* ============================= */
/* REDES SOCIALES - ICONOS REDONDOS */
/* ============================= */
.footer-social ul li { display: inline-block; margin: 0 1rem; }

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--background);
    color: var(--color-blanco);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: background 0.3s ease-in-out;
}

.social-icon:hover { background: var(--hover-color); }

.footer-links ul li { margin-bottom: 1rem; }

.footer-links ul li a {
    color: var(--color-blanco);
    transition: color 0.3s ease-in-out;
}

.footer-links ul li a:hover { color: var(--primary-color); }

.footer-copyright {
    margin-top: 2rem;
    font-size: 0.9rem;
}

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


/* ============================= */
/* BOTÓN VOLVER ARRIBA MEJORADO */
/* ============================= */
/* Botón volver arriba */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: auto;
    height: 5rem;
    background: rgba(2, 43, 87, 0.699);
    color: var(--color-blanco);
    border: none;
    border-radius: 2.5rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    padding: 1rem 1.5rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.2);
    gap: 1rem;
}

.scroll-top i { font-size: 1.5rem; }

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top:hover {
    background: var(--hover-color);
    transform: scale(1.1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.scroll-top.show { animation: fadeInScale 0.3s ease-in-out; }

@media (max-width: 768px) {
    .scroll-top {
        width: 5rem;
        height: 5rem;
        padding: 1rem;
        justify-content: center;
    }
    .scroll-text { display: none; }
}

/* ============================= */
/* CONTACTO */
/* ============================= */

/* Contacto */
.contact-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
    margin: 2rem 0;
    border: 1px solid #ccc;
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(90deg, #e91e63, #ff5722);
}

.featured-image,
.contact-form-container { flex: 1 1 50%; }

.featured-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-image img {
    width: 75rem;
    height: 35rem;
    animation: fadeInUp 0.8s ease-out forwards;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
}

.contact-form { display: grid; grid-gap: 1rem; }

.form-group { display: flex; flex-direction: column; }

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
}

.contact-form button {
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: var(--color-blanco);
    border: none;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover { background-color: var(--hover-color); }

@media (max-width: 768px) {
    .contact-wrapper { flex-direction: column; }
    .featured-image,
    .contact-form-container { flex: 1 1 100%; }
    .featured-image img { width: 100%; height: auto; }
}

/* Animación fadeInUp */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Estilo general de la sección */
.custom-front-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 300px;
    padding: 20px;
}

/* Ajuste de diseño para pantallas pequeñas */
@media (max-width: 768px) {
    .custom-front-section {
        grid-template-columns: 1fr; /* Poner en columna */
        height: auto;
    }

    .custom-card, .text-box, .video-box {
        width: 100%;
        height: auto;
    }

    .video-box iframe {
        height: 200px; /* Ajuste de altura para móviles */
    }
}

/* Estilo del Card con efecto */
.custom-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s ease;
}

/* Superposición con fondo oscuro */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Efecto de hover */
.custom-card:hover .card-overlay {
    opacity: 1;
}

.custom-card:hover img {
    filter: brightness(50%);
}


/* slider front*/

/* Home Slider */
/* Optimización para el slider principal */
#home-slider {
    width: 100%;
    min-height: 30vh;
    overflow: hidden;
    position: relative;
}

.swiperhome {
    width: 100%;
    height: 100%;
    min-height: 40vh; /* Más flexible para móviles */
}

.swiper-slider-front {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slider-front img {
    width: 100%;
    height: 100%;
    max-height: 80vh; /* Limita la altura para mejor responsividad */
    will-change: transform; /* Optimiza rendimiento de transiciones */
}

.swiper-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-pagination-bullet {
    background: var(--color-blanco);
    opacity: 0.7;
    width: 1.2rem;
    height: 1.2rem;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

@media (max-width: 600px) {
    #home-slider, .swiperhome, .swiper-slider-front {
        min-height: 20vh;
    }
    .swiper-slider-front img {
        max-height: 40vh;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    #home-slider, .swiperhome, .swiper-slider-front {
        min-height: 30vh;
    }
    .swiper-slider-front img {
        max-height: 50vh;
    }
}



/* Servicios en el front */

/* ====== SECCIÓN SERVICIOS ====== */
/* Servicios */
/* Servicios y Clientes */
#servicios, #clientes {
    padding: 2rem;
    background: linear-gradient(172deg, var(--light-color) 60%, var(--background)  50%);
    text-align: center;
}

#servicios h2, #clientes h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.container-servicios,
.container-comercial,
.container-clientes {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.row-servicios, .row-cliente {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
}

.col-60, .col-40 {
    flex: 1;
    min-width: 0; /* Evita desbordamientos */
    max-width: 100%;
}

.text-container, .image-container {
    padding: 1.5rem;
    height: auto; /* Más flexible */
}

.mySwiperText,
.mySwiperTextclientes {
    width: 100%;
    max-width: 50rem;
    height: auto;
    position: relative;
}

.servicio-texto,
.cliente-texto {
    text-align: left;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 1rem;
    transition: opacity 0.5s ease-in-out;
}

.servicio-texto h3,
.cliente-texto h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.servicio-texto p,
.cliente-texto p {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.image-container {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30rem;
    overflow: visible;
}

.servicio-imagen img, .cliente-imagen img {
    width: 100%;
    max-width: 45rem;
    height: auto;
    max-height: 25rem;
    border-radius: 1rem;
    object-fit: cover;
}

.servicio-imagen,
.cliente-imagen {
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.swiper-slide-active { opacity: 1; }

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: var(--color-blanco);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    transition: background 0.3s ease-in-out;
}

.btn-primary:hover { background: var(--hover-color); }

@media (max-width: 768px) {
    .col-60, .col-40 {
        flex: 1 0 100%;
        min-width: 100%;
    }
    .servicio-imagen img, .cliente-imagen img {
        max-height: 20rem;
    }
}

@media (max-width: 480px) {
    .servicio-imagen img, .cliente-imagen img {
        max-height: 15rem;
    }
}

/* ====== CONTENEDORES COMERCIAL - CLIENTES - SERVICIOS ====== */
.container-servicios,
.container-clientes,
.latest-posts {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}
.mySwiperComercial {
    margin-top: 2rem;
}


/* ====== SECCIÓN COMERCIAL OPTIMIZADA ====== */
/* SECTION COMERCIAL Estilos base para Mobile First */
/* ===== SECCIÓN VENDEDORES (Tu CSS optimizado) ===== */
        .vendors-section {
            padding: 20px 15px;
            text-align: center;
            background: linear-gradient(172deg, var(--background) 50%, var(--light-color) 50%);
            animation: fadeIn 1s ease-in;
        }

        .vendors-section h2 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: var(--text-color);
            font-weight: 700;
        }

        .vendors-container {
            display: grid;
            grid-template-columns: minmax(200px, 300px);
            gap: 15px;
            margin: 0 auto;
            justify-content: center;
        }

        .vendor-card {
            background: var(--color-blanco);
            border: 1px solid var(--light-color);
            border-radius: 8px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
            animation: fadeInCard 0.8s ease-in;
            animation-fill-mode: backwards;
            position: relative;
            overflow: hidden;
        }

        /* Añadiendo el efecto de barra superior que tenía en mi versión */
        .vendor-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 4px;
            background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
            transition: left 0.3s ease;
        }

        .vendor-card:hover::before {
            left: 0;
        }

        /* Tus animaciones escalonadas (geniales!) */
        .vendor-card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .vendor-card:nth-child(3) {
            animation-delay: 0.2s;
        }

        .vendor-card:nth-child(4) {
            animation-delay: 0.3s;
        }

        .vendor-card:nth-child(n+5) {
            animation-delay: 0.4s;
        }

        @keyframes fadeInCard {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .vendor-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            background-color: var(--light-color);
        }

        .vendor-photo {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 10px;
            border: 2px solid var(--light-color);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .vendor-photo:hover {
            transform: scale(1.1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            border-color: var(--primary-color);
        }

        .vendor-name {
            font-size: 1.2rem;
            margin: 0 0 5px;
            color: var(--text-color);
            font-weight: 600;
        }

        .vendor-position {
            font-size: 0.9rem;
            color: var(--hover-color);
            margin: 0 0 5px;
        }

        .vendor-email {
            font-size: 0.85rem;
            margin: 0 0 10px;
        }

        .vendor-email-link {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .vendor-email-link:hover {
            color: var(--hover-color);
            text-decoration: underline;
        }

        .vendor-whatsapp {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--whatsapp-color);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            padding: 8px 12px;
            border: 2px solid var(--whatsapp-color);
            border-radius: 20px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .vendor-whatsapp:hover {
            background-color: var(--whatsapphover-color);
            color: var(--color-blanco);
        }

        .vendor-whatsapp img {
            width: 20px;
            height: 20px;
        }

        /* ===== TUS MEDIA QUERIES OPTIMIZADOS ===== */
        @media (max-width: 768px) {
            #clientes {
                padding: 30px 0;
            }

            .row-clientes {
                flex-direction: column;
                gap: 1.5rem;
            }

            .col-60, .col-40 {
                flex: 1 1 100%;
                min-width: unset;
            }

            .clientes-imagen img {
                width: 100%;
                height: 15rem;
            }

            .servicio-texto h3 {
                font-size: 2rem;
                color: var(--color-blanco);
            }

            .servicio-texto p {
                font-size: 1.1rem;
                color: var(--light-color);
            }

            .vendors-section {
                padding: 30px 20px;
            }

            .vendors-section h2 {
                font-size: 2rem;
                color: var(--text-color);
            }

            .vendors-container {
                grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
                gap: 15px;
            }

            .vendor-card {
                padding: 15px;
            }

            .vendor-photo {
                width: 120px;
                height: 120px;
            }

            .vendor-name {
                font-size: 1.3rem;
                color: var(--text-color);
            }

            .vendor-position,
            .vendor-email {
                font-size: 0.9rem;
            }

            .vendor-position {
                color: var(--hover-color);
            }

            .vendor-whatsapp {
                font-size: 0.95rem;
                padding: 8px 12px;
            }
        }

        @media (max-width: 480px) {
            #clientes {
                padding: 20px 0;
            }

            .container-servicios {
                padding: 1rem;
            }

            .clientes-imagen img {
                height: 12rem;
            }

            .servicio-texto h3 {
                font-size: 1.8rem;
                color: var(--color-blanco);
            }

            .vendors-section h2 {
                font-size: 1.8rem;
                color: var(--text-color);
            }

            .vendors-container {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .vendor-photo {
                width: 100px;
                height: 100px;
            }
        }

        @media (min-width: 1200px) {
            #clientes {
                padding: 60px 0;
            }

            .servicio-texto h3 {
                font-size: 3rem;
                color: var(--dark-color);
            }

            .vendors-section {
                padding: 40px 30px;
            }

            .vendors-section h2 {
                font-size: 2.5rem;
                color: var(--text-color);
            }

            .vendors-container {
                grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
                gap: 20px;
                max-width: 1200px;
            }

            .vendor-card {
                padding: 20px;
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }

            .vendor-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
            }

            .vendor-photo {
                width: 150px;
                height: 150px;
                border: 3px solid var(--light-color);
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            }

            .vendor-photo:hover {
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
                border-color: var(--primary-color);
            }

            .vendor-name {
                font-size: 1.5rem;
                margin: 0 0 8px;
                color: var(--text-color);
            }

            .vendor-position {
                font-size: 1rem;
                margin: 0 0 8px;
                color: var(--hover-color);
            }

            .vendor-email {
                font-size: 0.95rem;
                margin: 0 0 12px;
            }

            .vendor-whatsapp {
                font-size: 1rem;
                padding: 10px 15px;
                gap: 8px;
            }

            .vendor-whatsapp img {
                width: 24px;
                height: 24px;
            }
        }

        /* ===== MEJORAS ADICIONALES ===== */
        
        /* Loading skeleton para mejor UX */
        .loading-skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Focus states para accesibilidad */
        .vendor-whatsapp:focus,
        .vendor-email-link:focus {
            outline: 2px solid #0097a7;
            outline-offset: 2px;
        }

        /* Optimización para reducir motion cuando el usuario lo prefiera */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }