/* ---------------------- RESET ---------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------- GLOBAL ---------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #2c2c2c;
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

h3, h4 {
    color: #1565c0;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #0077ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #005fcc;
}

/* ---------------------- TOPBAR ---------------------- */
.topbar {
    background: linear-gradient(90deg, #0d47a1, #1565c0);
    color: #f9fbfd;
    font-size: 0.95rem;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.topbar .container {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.topbar a {
    color: #f9fbfd;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.topbar a:hover {
    color: #ffeb3b;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.topbar i {
    margin-right: 6px;
}

/* ---------------------- HEADER ---------------------- */
.header {
    background: linear-gradient(135deg, #2231ff, #1abcff);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #1a29cc, #1abcff);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img {
    height: 65px;
    width: 65px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    object-fit: cover;
}

.logo:hover {
    transform: scale(1.08) rotate(-2deg);
}

/* ---------------------- NAV ---------------------- */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 10px;
    position: relative;
    background: rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.25);
    color: #ffe082;
    transform: translateY(-2px);
}

.nav-link::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: #ffe082;
    position: absolute;
    bottom: 5px;
    left: 25%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 50%;
}

/* ---------------------- HAMBURGER MENU ---------------------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ---------------------- CAROUSEL ---------------------- */
.carousel {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    border-radius: 0; /* sin bordes curvos */
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.carousel:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.carousel .slides {
    display: flex;
    width: 400%;
    animation: slide 20s infinite ease-in-out;
}

.carousel img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 0; /* sin bordes curvos */
    filter: brightness(90%);
    transition: transform 0.6s ease, filter 0.5s ease;
}

.carousel img:hover {
    transform: scale(1.05);
    filter: brightness(100%) saturate(1.1);
}

@keyframes slide {
    0%, 20%   { transform: translateX(0%); }
    25%, 45%  { transform: translateX(-25%); }
    50%, 70%  { transform: translateX(-50%); }
    75%, 95%  { transform: translateX(-75%); }
    100%      { transform: translateX(0%); }
}

/* Viñeta flotante más bonita */
.promo-badge {
    position: absolute;
    top: 10%;            /* un poco más arriba */
    left: 5%;            /* alineada a la izquierda */
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    color: #333;
    padding: 16px 20px;
    max-width: 200px;
    text-align: center;
    font-size: 0.95rem;
    border: 2px solid #f4d03f;  /* borde dorado */
    border-radius: 20px;        /* más elegante */
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
    transition: transform 0.3s ease;
}

.promo-badge:hover {
    transform: scale(1.03);
}

/* Texto */
.promo-badge h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e63946;
}

.promo-badge p {
    margin: 8px 0;
    font-size: 0.85rem;
    color: #555;
}

/* Botón */
.promo-badge a {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #25d366;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.3s, transform 0.2s;
}

.promo-badge a:hover {
    background: #128c7e;
    transform: scale(1.05);
}

/* Animación flotante */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
    .promo-badge {
        top: 8%;
        left: 4%;
        max-width: 180px;
        padding: 14px 18px;
        font-size: 0.9rem;
    }
    .promo-badge h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .promo-badge {
        top: 6%;
        left: 3%;
        max-width: 160px;
        padding: 12px 14px;
        font-size: 0.85rem;
    }
    .promo-badge h3 {
        font-size: 1rem;
    }
    .promo-badge p {
        font-size: 0.75rem;
    }
    .promo-badge a {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}

/* ---------------------- WELCOME ---------------------- */
.welcome {
    text-align: center;
    padding: 30px 40px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    width: 90%;
    margin: -100px auto 60px auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease both;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.welcome:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.welcome h2 {
    color: #2231ff;
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.welcome p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: auto;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ---------------------- WHATSAPP BUTTON ---------------------- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 10px;
    background: linear-gradient(45deg, #25d366, #1ebe5d, #2ed573);
    background-size: 300% 300%;
    color: white;
    padding: 16px 22px;
    border-radius: 25px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.35s ease, background-position 0.5s ease;
    display: flex;
    align-items: center;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(-2deg);
    background-position: 100% 0;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.4rem;
}

/* ---------------------- SERVICES ---------------------- */
.services {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9fbff, #eef5ff);
    border-top: 4px solid #2231ff;
    margin-top: 50px;
}

.services h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #2231ff;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card i {
    color: #1565c0;
    margin-bottom: 18px;
}

.service-card h3 {
    color: #2231ff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0,0,0,0.25);
}

/* ---------------------- BOTONES GENERALES ---------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    border-radius: 25px;
    cursor: pointer;
    background: linear-gradient(45deg, #2231ff, #1abcff, #1565c0);
    background-size: 300% 300%;
    transition: all 0.4s ease, background-position 0.5s ease;
}

.btn:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        background: #2231ff;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 220px;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .nav-list.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .carousel {
        height: 280px;
    }

    .carousel img {
        height: 280px;
    }

    .welcome {
        width: 95%;
        padding: 20px;
    }

    .welcome h2 {
        font-size: 2rem;
    }

    .services {
        padding: 50px 15px;
    }

    .services h2 {
        font-size: 1.8rem;
    }
}
