:root {
    --brand: #125c66;
    --brand-2: #0c3c42;
    --accent: #ffcc66;
    --bg: #f6fbfc;
    --ink: #0b1113;
    --muted: #5d7075;
    --card: #ffffff;
    --ring: #b0dfe6;
    --shadow: 0 10px 18px rgba(0, 0, 0, .08);
    --radius: 18px;
    --primary: #0d6efd;
}

* {
    box-sizing: border-box
}

.watermark-bg {
    background: var(--bg);
    /* Color principal de fondo */
    position: relative;
    min-height: 100vh;
    z-index: 0;
}

.watermark-bg::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: url('../img/Logo.png') no-repeat center center;
    background-size: 900px auto;
    opacity: 0.08;
    /* Marca de agua suave */
    filter: grayscale(100%) contrast(120%);
    z-index: 0;
}

/* Asegura que el contenido esté por encima de la marca de agua */
body>* {
    position: relative;
    z-index: 1;
}

html,
body {

    margin: 0;
    padding: 0;
    /* background: var(--bg);*/
    color: var(--ink);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    line-height: 1.4
}

a {
    color: var(--brand);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

/* Nav */
.topbar {
    background: var(--brand);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    display: flex;
    gap: .6rem;
    align-items: center;
    font-weight: 800;
    letter-spacing: .3px
}

.brand .logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ffdca0);
    display: grid;
    place-items: center;
    color: #2b2b2b;
    font-weight: 900
}

.menu {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap
}

.menu a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 12px
}

.menu a[aria-current="page"] {
    background: rgba(255, 255, 255, .16)
}

.cta {
    background: var(--accent);
    color: var(--brand);
    padding: 8px 14px;
    border-radius: 14px;
    font-weight: 700;
    color:#050505 !important;
}

.cta:hover {
    background: white;
    text-decoration: none
}

/* Hero */
.hero {
    /*background:
        radial-gradient(1200px 400px at 60% -20%, rgba(255, 255, 255, .9), transparent 60%),
        linear-gradient(180deg, #e7f6f9, #f6fbfc 40%);*/
    padding: 72px 0 24px;
    border-bottom: 1px solid #e5f2f5
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6f0f3;
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: .9rem
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: .6rem 0 1rem
}

.lead {
    color: #2a3a3e;
    font-size: 1.12rem;
    max-width: 52ch
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 2px solid transparent
}

.btn.primary {
    background: var(--brand);
    color: #fff
}

.btn.primary:hover {
  background-color: var(--brand-2);
}

.btn.secondary {
    background: #fff;
    border-color: #d9ecef;
    color: var(--brand)
}

.hero .img {
    background: #fff;
    border: 1px solid #e6f0f3;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow)
}

.hero img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block
}

/* Sections */
section {
    padding: 44px 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.card {
    background: var(--card);
    border: 1px solid #e6f0f3;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column
}

.card img {
    width: 100%;
    height: 190px;
    object-fit: cover
}

.card .p {
    padding: 16px
}

.muted {
    color: var(--muted)
}

/* Footer */
footer {
    background: var(--brand-2);
    color: #eaf2f4;
    padding: 28px 0;
    margin-top: 30px
}

footer a {
    color: #eaf2f4
}

.footgrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 16px;
    padding-top: 12px;
    color: #b7c8cc
}

.subtitle {
    font-weight: 600;
    font-size: small;
}

/* Responsive */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr
    }

    .hero-grid > * {
        min-width: 0;
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width:768px) {
    .footgrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:620px) {
    .menu {
        gap: 8px
    }

    .menu > * {
        min-width: 0;
    }

    .cards {
        grid-template-columns: 1fr
    }

    .subtitle {
        display: none;
    }
}


/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand);
    padding: 10px 20px;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Links del menú */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffcc00;
}

/* Estilos del hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 0;
        background: #1e3a5f;
        flex-direction: column;
        width: 200px;
        text-align: right;
        padding: 10px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .watermark-bg::before {

        background-size: 400px auto;

    }

    .badge {
        gap: 12px;
        font-size: 0.8rem;
    }

}

@media (max-width: 768px) {
  .badge {
        gap: 12px;
        font-size: 0.75rem;
    }
}
.navbar-toggler {
    padding: 0;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}


.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}