
body {
    margin: 0;
    padding-top: 80px;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f7fa;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);

    color: white;

    padding: 10px 20px; /* 👈 menos espacio lateral */
    
    display: flex;
    justify-content: space-between;
    align-items: center;

    box-sizing: border-box; /* 👈 IMPORTANTE */
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0px 0px 15px rgba(255,255,255,0.6);
}

.logo img:hover {
    transform: scale(1.1);
}

header h1 {
    margin: 0;
}

/* NAV */
nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #e63946;
}

/* HERO */
.hero {
    position: relative;

    background: url("img/portada.png");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;

    height: 65vh;

    display: flex;
    flex-direction: column;
    justify-content: center; /* 👈 CENTRADO VERTICAL */
    align-items: center;

    text-align: center;
    color: white;
    
    overflow: hidden;
   
}

.hero::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0.5) 40%,
        rgba(0,0,0,0.3) 70%,
        rgba(245,247,250,1) 100%
    );

    z-index: 1;
}

.hero h2, .hero p, .hero a {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 38px;
    font-weight: bold;
    text-shadow: 0px 5px 20px rgba(0,0,0,1);
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    text-shadow: 0px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 20px;
}

/* BOTÓN */
.btn {
    display: inline-block; /* 👈 IMPORTANTE */
    padding: 14px 35px;
    background: linear-gradient(45deg, #e63946, #ff4d6d);
    color: white;
    border-radius: 10px;
    text-decoration: none; /* 👈 quita subrayado */
    font-weight: bold;
    box-shadow: 0px 5px 15px rgba(230,57,70,0.5);
    transition: 0.3s;
}
.btn {
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 25px rgba(230,57,70,0.7);
}

/* SERVICIOS */
.servicios {
    padding: 60px 20px;
    text-align: center;
}

/* ===== CARDS PRO ===== */

.card {
    display: inline-block;
    width: 260px;
    margin: 15px;
    padding: 25px;
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;

    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* EFECTO LUZ */
.card::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
    top: 0;
    left: -120%;
    transition: 0.6s;
}

.card:hover::before {
    left: 100%;
}

/* HOVER PRO */
.card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ICONOS */
.card i {
    font-size: 42px;
    margin-bottom: 12px;
    color: #e63946;
    transition: 0.3s;
}

.card:hover i {
    transform: scale(1.2);
}

/* TITULO */
.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* TEXTO */
.card p {
    color: #555;
    font-size: 14px;
}

/* CLICK */
.card:active {
    transform: scale(0.97);
}

/* CONTACTO */
.contacto {
    padding: 60px 20px;
    text-align: center;
}

/* FORM */
form {
    max-width: 400px;
    margin: auto;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
}

/* FOOTER */
footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 15px;
}

/* WHATSAPP */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 85px;
    height: 85px;
    background: #25D366;
    color: white;
    font-size: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    z-index: 1000;
}

/* ===== CARRUSEL PRO ===== */

.carrusel {
    width: 100%;
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carrusel h2 {
    font-size: 28px;
    color: #1b263b;
}

/* CONTENEDOR */
.slider {
    width: 100%;
    max-width: 900px;
    height: 420px;
    position: relative;
    overflow: hidden;
}

/* SLIDES BASE */
.slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.9);

    width: 80%;
    height: 450px;

    object-fit: contain;

    opacity: 0;
    filter: blur(5px);

    transition: 0.5s ease;
    border-radius: 15px;

    background: transparent; /* 👈 YA NO HAY AZUL */
}

/* ACTIVO */
.slide.active {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
    filter: blur(0);
    z-index: 3;

    box-shadow: 0px 20px 50px rgba(0,0,0,0.4); /* 👈 efecto pro */
}

/* IZQUIERDA */
.slide.prevSlide {
    transform: translateX(-120%) scale(0.8);
    opacity: 0.5;
    filter: blur(3px);
    z-index: 2;
}

/* DERECHA */
.slide.nextSlide {
    transform: translateX(20%) scale(0.8);
    opacity: 0.5;
    filter: blur(3px);
    z-index: 2;
}

/* BOTONES */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 25px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: #e63946;
}

/* DETALLE */
.detalle {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    display: none;
}
.menu-toggle {
    display: none;
    font-size: 25px;
    cursor: pointer;
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {

    nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: #0d1b2a;
        flex-direction: column;
        text-align: center;
        display: none;
    }

    nav a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle {
        display: block;
    }
}
.menu-toggle {
    display: none;
    font-size: 25px;
    cursor: pointer;
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    nav {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: #0d1b2a;
        flex-direction: column;
        text-align: center;
        display: none;
    }

    nav a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle {
        display: block;
    }
}

.producto {
    background: white;
    border-radius: 15px;
    width: 100%;
    padding: 18px;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 👈 magia */

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.4s;
}

/* ===== FIX PRODUCTOS GRID (IMPORTANTE) ===== */

.contenedor-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
    padding: 10px;
}

.producto {
    width: 100%;
}

.producto:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.producto img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    transition: 0.3s;
}

.producto:hover img {
    transform: scale(1.05);
}

.precio {
    font-size: 22px;
    color: #0a58ca;
    font-weight: bold;
    margin-top: 10px;
}

.btn-wsp {
    display: inline-block;
    margin-top: 10px;
    padding: 10px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.producto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .whatsapp {
        width: 75px;
        height: 75px;
        font-size: 38px;
        bottom: 25px;
        right: 15px;
    }
}

.whatsapp {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.producto {
    text-align: center; /* 👈 ESTO CENTRA TODO LO DE ADENTRO */
}

.footer-producto {
    display: flex;
    flex-direction: column;
    align-items: center; /* 👈 centra botón */
    margin-top: auto;
}

.precio {
    font-size: 22px;
    color: #0a58ca;
    font-weight: bold;
    margin: 10px 0;
}

.titulo-productos {
    text-align: center !important;
    margin: 30px 0 40px 0;
}

.titulo-productos h2 {
    font-size: 32px;
    color: #1b263b;
    margin-bottom: 10px;
}

.titulo-productos p {
    font-size: 16px;
    color: #6c757d;
}

.titulo-productos h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #e63946;
    margin: 10px auto;
    border-radius: 2px;
}

.titulo-productos {
    animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.producto .btn {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}
.producto:hover {
    transform: translateY(-8px) scale(1.02);
}

.whatsapp:hover {
    transform: scale(1.15);
}

.filtros {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.filtros input,
.filtros select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

html {
    scroll-behavior: smooth;
}