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 */
.card {
    display: inline-block;
    width: 250px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

/* 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: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: #25D366;
    color: white;
    font-size: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
}

/* ===== 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;
    }
}