﻿/* =====================
   BASE
===================== */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #334155;
    margin: 0;
    /*margin-bottom: 60px; */
    padding-top: 80px;
}

section {
    scroll-margin-top: 100px;
}

/* =====================
   NAVBAR
===================== */

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.navbar a button {
    margin-left: 25px;
    text-decoration: none;
    color: #0057B8;
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
}

    .nav-link:hover {
        color: #0057B8 !important;
    }

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: #ffffff;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }

.logo-img {
    height: 55px;
    width: auto;
}

/* =====================
   HERO
===================== */

/*.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('/images/hero.jpeg') center/cover no-repeat;
        transform: scale(1.1);
        z-index: -1;
    }

.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0,87,184,0.55), rgba(0,87,184,0.45) );
    display: flex;
    align-items: center;
} */

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('../Images/hero.png') center / cover no-repeat;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    z-index: -1;
}

/*.hero-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient( to bottom, rgba(0,87,184,0.55), rgba(0,87,184,0.45) );
    display: flex;
    align-items: center;
    justify-content: center;
} */





.hero-content {
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

    .hero-content h1 {
        font-size: 3rem;
        font-weight: 700;
        text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    }

    .hero-content p {
        font-size: 1.2rem;
        opacity: 0.95;
    }


.hero-overlay {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}





    .hero-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5); /* oscuridad */
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}





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

/* =====================
   SECTIONS
===================== */

.section {
    padding: 100px 20px;
}

.section-title {
    color: #0057B8;
    font-weight: 700;
    margin-bottom: 30px;
}

.bg-soft {
    background: #f4f8fc;
}

.container {
    max-width: 1100px;
    margin: auto;
}

.services {
    background: #f8fafc;
}

/* =====================
   GRID & CARDS
===================== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* =====================
   BUTTONS
===================== */

.btn-primary {
    background-color: #0057B8;
    border-color: #0057B8;
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #003f8a;
        border-color: #003f8a;
    }

.btn-outline {
    border: 2px solid #0057B8;
    color: #0057B8;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
}

.btn-large {
    padding: 16px 40px;
}

/* =====================
   CTA
===================== */

.cta {
    background: #0057B8;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.social-links a {
    margin: 0 10px;
    font-size: 20px;
    color: #666;
    transition: 0.2s;
}

    .social-links a:hover {
        color: #000;
        transform: scale(1.2);
    }


/* =====================
   MASONRY SOLO SERVICIOS
===================== */

/* =====================
   MASONRY SERVICIOS PRO
===================== */

/* =====================
   MASONRY REAL PRO
===================== */

#especialidades .grid {
    column-count: 3;
    column-gap: 30px;
}

@media (max-width: 992px) {
    #especialidades .grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    #especialidades .grid {
        column-count: 1;
    }
}

/* CARD BASE */
#especialidades .card {
    display: inline-block;
    width: 100%;
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    /* HOVER */
    #especialidades .card:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

    /* =====================
   VARIACIONES (LA MAGIA)
===================== */

    /* Cards más altas */
    #especialidades .card:nth-child(2),
    #especialidades .card:nth-child(5),
    #especialidades .card:nth-child(9) {
        padding-bottom: 40px;
    }

    /* Cards más compactas */
    #especialidades .card:nth-child(3),
    #especialidades .card:nth-child(7) {
        padding-bottom: 10px;
    }

    /* Cards destacadas */
    #especialidades .card:nth-child(1),
    #especialidades .card:nth-child(6) {
        transform: scale(1.02);
    }

    /* Pequeños desplazamientos naturales */
    #especialidades .card:nth-child(4) {
        margin-top: 15px;
    }

    #especialidades .card:nth-child(8) {
        margin-top: -10px;
    }

    /* TÍTULOS */
    #especialidades .card h3 {
        text-align: center;
        margin-bottom: 10px;
    }

    /* TEXTO */
    #especialidades .card p {
        text-align: center;
        color: #555;
    }

    /*servicios */
/* Modal fondo */
/*.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
} */

/* Contenido */
/*.custom-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
} */

/* Botón cerrar 
.custom-modal-close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

/* Animación 
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.custom-modal-content {
    max-height: 95vh;
    overflow-y: auto;
}

#modalText {
    white-space: pre-line;
} */



.long-text {
    white-space: pre-line; /* respeta saltos de línea */
    line-height: 1.7;
    font-size: 16px;
    color: #333;
    margin-bottom: 50px;
}

    /* Títulos tipo "1. Alimentación" */
    .lomg-text strong {
        display: block;
        margin-top: 20px;
        font-size: 18px;
       
    }

    /* Espaciado entre párrafos */
    .long-text p {
        margin-bottom: 300px;
    }

.blog_title
{
    margin-top : 30px;
   align-items : center;
   
}

.card_pub {
    display: flex;
    flex-direction: column;
    height: 100%; /* 🔥 importante si están en grid */
}

    .card_pub .short-text {
        flex-grow: 1; /* 🔥 empuja el botón hacia abajo */
    }

    .card_pub .btn-primary {
        margin-top: auto; /* 🔥 lo pega abajo */
    }



/* algunas cards destacadas */
#especialidades .card:nth-child(3n) {
    background: #f9fbff;
}

#especialidades .card:nth-child(4n) {
    transform: scale(1.02);
}




.footer {
  border-top: 1px solid #ddd;
  padding: 30px 0;
  background-color: #f8f9fa;
  margin-top: 0px;
}

.footer-copy {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-made {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 10px;
}

.social-links {
  margin: 15px 0;
}

.social-links a {
  margin: 0 10px;
  font-size: 22px;
  color: #0077cc;
  transition: 0.3s;
}

.social-links a:hover {
  color: gray; /* verde saludable */
  transform: scale(1.2);
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}
