/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f03f9;
    --extra-color: #24a509;
    --primary-dark: #151338;
    --secondary-color: #f70000;
    --dark-color: #0f03f9;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --success-color: #44be0d;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #550b0b;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Barra de navegación */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-combined {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    height: 100px;
    width: 150px;
    /*border-radius: 8px; /* Opcional: bordes redondeados */
    object-fit: contain;
    background-color: white;
    /*padding: 5px; /* Espacio interno */
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.8rem;
    margin-top: -3px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.logo-highlight {
    color: var(--primary-color);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--extra-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--extra-color);
    border-radius: 3px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.nav-extra .phone-btn {
    background-color: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-extra .phone-btn:hover {
    background-color: #219653;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
                url('./img/coverportada2.png');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin-top: 110px;
}

.hero-overlay {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    color: var(--dark-color);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-color);
    display: flex;
    justify-content: space-around;
    padding: 30px 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat p {
    font-size: 0.9rem;
    color: var(--gray-color);
}



/* ===== CARRUSEL DE OFERTAS ===== */
.ofertas-carousel {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #f5f5f5;
}

/* ¡ESTA ES LA REGLA QUE FALTABA! */
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    flex-shrink: 0; /* Evita que se encojan */
}

.carousel-slide img {
    width: auto;
    height: 500px;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

/* Botones de navegación */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.carousel-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Indicadores (puntos) */
.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide img {
        height: 350px;
    }
    .carousel-prev, .carousel-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: 250px;
    }
}



/* Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Contenedor de la imagen del producto */
.product-image {
    height: 350px;          /* Altura fija */
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;       /* Oculta partes que sobresalgan */
}

/* Estilo para la imagen dentro */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Cubre el contenedor sin deformar (recorta si es necesario) */
    transition: transform 0.3s ease;
}

/* Efecto hover: zoom suave */
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--gray-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-btn {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

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

/* Marcas */
.brands-section {
    background-color: var(--light-color);
}

.brands-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.brand {
    background-color: white;
    border-radius: 12px;
    padding: 25px 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

/* Estilo para los logos de marcas */
.brand-logo {
    width: 120px;          /* Ancho fijo */
    height: 120px;         /* Alto fijo */
    object-fit: contain;   /* Ajusta la imagen sin deformar */
    margin-bottom: 15px;   /* Espacio inferior */
    transition: transform 0.3s ease; /* Animación suave */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); /* Sombra ligera */
}

.brand-logo:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

.brand:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.brand i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.brand h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.brand p {
    color: var(--gray-color);
}

/* Servicios */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;

}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.service-tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Nosotros */
.about-section {
    background-color: white;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.about-features {
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    color: var(--success-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.testimonial {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
}

.testimonial-content {
    position: relative;
    margin-bottom: 15px;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    top: -10px;
    left: -10px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark-color);
    margin-bottom: 0;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author strong {
    color: var(--dark-color);
}

.testimonial-author span {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.image-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.image-container img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition);
}

.image-container:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px;
    text-align: center;
}

.image-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* Contacto */
.contact-section {
    background-color: var(--light-color);
}

/*.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}*/

/*.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}*/

/*.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}*/

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/*.contact-card h3 {
    margin-bottom: 5px;
    color: var(--dark-color);
}*/

/*.contact-card h2 {
    margin-bottom: 5px;
    color: var(--dark-color);
}*/

/*.contact-card p {
    color: var(--gray-color);
}*/


/* ===== SUCURSALES ===== */
.sucursales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.sucursal-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.sucursal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.sucursal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sucursal-header i {
    font-size: 2rem;
}

.sucursal-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.sucursal-body {
    padding: 20px;
}

.sucursal-body p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-color);
}

.sucursal-body i {
    width: 20px;
    color: var(--primary-color);
}

.btn-small {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 10px;
    text-decoration: none;
}

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

.social-links {
    text-align: center;      /* Centra el título */
    margin-top: 40px;        /* Espacio superior */
    width: 100%;             /* Ocupa todo el ancho */
}

.social-links h3 {
    text-align: center;      /* Título centrado */
    margin-bottom: 20px;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    justify-content: center; /* Centra los íconos horizontalmente */
    gap: 20px;               /* Espacio entre íconos */
    flex-wrap: wrap;         /* Que se ajusten en móvil */
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: white;
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/*.map-container {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.map i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.map h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.map p {
    color: var(--gray-color);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}*/

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-section a {
    color: #ccc;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--extra-color);
}

.footer-description {
    color: #ccc;
    margin-top: 15px;
}

.newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-family: 'Roboto', sans-serif;
}

.newsletter .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom i.fa-heart {
    color: var(--primary-color);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #44be0d;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Diseño responsivo */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        position: relative;
        margin-top: 40px;
    }

    .section {
        padding: 60px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .brands-container,
    .services-container {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn span {
        display: none;
    }

    .whatsapp-btn {
        padding: 15px;
        bottom: 20px;
        right: 20px;
    }
}
