/* Map embed styles (mobile-first)
   - Robust, simple approach using a responsive wrapper with padding-top fallback
   - Mobile-first: 4:3 (75% padding-top). Wider screens: 16:9 (56.25%).
   - Wrapper clips corners using border-radius to match Bootstrap .card (0.25rem).
   - Usage: wrap iframe in
       <div class="map-wrapper"><iframe class="map-embed" ...></iframe></div>
*/
.map-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 0.25rem; /* match default Bootstrap .card radius */
    position: relative;
    /* mobile-first ratio 4:3 */
    padding-top: 75%;
}

/* iframe fills the wrapper (fallback for browsers without aspect-ratio) */
.map-wrapper iframe.map-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    /* border-radius applied on wrapper clips corners; keep on iframe for safety */
    border-radius: 0.25rem;
}

/* Wider aspect on larger viewports */
@media (min-width: 576px) {
    .map-wrapper { padding-top: 56.25%; } /* 16:9 */
}

/* Optional class for iframes (keeps same rounding and makes explicit sizing) */
.map-embed {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

/* Ensure iframes inside cards inherit rounding and don't overflow */
.card .map-embed,
.card iframe.map-embed {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.25rem;
}

/* Custom styles for Red de Huellas
   This file contains only project-specific CSS (no vendor/bootstrap rules).
   Bootstrap should be added to the HTML via external CDN links. */

/* Basic typographic tweaks ------------------------------------------------ */
p {
    line-height: 26px;
    color: #5c5a5a;
    font-family: "Poppins", sans-serif;
}

h1, .h1 {
    font-size: 30px;
    font-family: "Poppins", sans-serif;
    line-height: 1.2;
    margin-bottom: 20px;
}
@media (min-width: 768px) {
    h1, .h1 {
        font-size: 32px;
        line-height: 1.2;
    }
}

h2, .h2 {
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    line-height: 1.4;
    margin-bottom: 10px;
}
@media (min-width: 768px) {
    h2, .h2 {
        font-size: 26px;
        line-height: 1.4;
    }
}

h3, .h3 {
    font-size: 16px;
    line-height: 1.4;
}
@media (min-width: 768px) {
    h3, .h3 {
        font-size: 20px;
        line-height: 1.4;
    }
}

ul, ol {
    margin: 0;
    padding: 0;
}
ul li, ol li {
    padding: 0;
    margin: 0;
}

.link {
    color: #59bebe !important;
    text-decoration: none;
}

.link p {
    color: #59bebe;
}

/* Page layout ------------------------------------------------------------- */
.page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: #59bebe;
}

.wrapper {
    background-color: #e4ecee;
}

.page .wrapper {
    flex: 1 0 0;
}

/* Footer ------------------------------------------------------------------ */
.footer {
    background: #e5261f;
    padding-top: 15px;
    padding-bottom: 15px;
}
.footer .footer-inner {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-start;
}
@media (min-width: 576px) {
    .footer .footer-inner {
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
    }
}
.footer .footer-title {
    color: #fff;
    font-size: 1.3rem;
    font-family: "Poppins", sans-serif;
    font-weight: bold;
    margin-bottom: 10px;
}
@media (min-width: 576px) {
    .footer .footer-title { margin: 0; }
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { color: #fff; font-size: 1rem; }
.footer ul li a {
    color: #fff;
    text-decoration: none;
    padding: 12px 14px 12px 0;
    display: block;
}
.footer ul li a:hover { text-decoration: underline; }
@media (min-width: 576px) {
    .footer ul {
        height: inherit;
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        justify-content: flex-end;
    }
    .footer ul li { list-style: none; margin-right: 10px; }
    .footer ul li:last-of-type { margin-right: 0; }
    .footer ul li a {
        display: inline-block;
        height: 40px;
        padding: 10px 8px;
    }
}

/* Navigation (project-specific) ------------------------------------------ */
.main-menu { display: none; }
@media (min-width: 768px) { .main-menu { display: block; } }

.main-menu > ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.main-menu > ul > li {
    list-style: none;
    font-size: 1rem;
}
.main-menu > ul > li > a {
    padding: 10px 12px;
    display: inline-block;
    font-weight: normal;
    text-decoration: none;
    color: #e5261f;
}
.main-menu > ul > li > a:hover { text-decoration: underline; }
.main-menu > ul > li.active > a {
    font-weight: bold;
    text-decoration: none;
}
.main-menu > ul > li.active > a:hover {
    text-decoration: none;
    transition: all 225ms ease-in 0s;
}

/* Mobile full-screen menu ------------------------------------------------ */
.main-menu-mobile {
    position: fixed;
    background: #e5261f;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s, height 0.35s;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.main-menu-mobile.open {
    opacity: 0.9;
    visibility: visible;
    height: 100%;
    z-index: 20;
}
.main-menu-mobile.open li {
    animation: fadeInRight 0.5s ease forwards;
    animation-delay: 0.35s;
}
.main-menu-mobile.open li:nth-of-type(2) { animation-delay: 0.4s; }
.main-menu-mobile.open li:nth-of-type(3) { animation-delay: 0.45s; }
.main-menu-mobile.open li:nth-of-type(4) { animation-delay: 0.5s; }
.main-menu-mobile.open li:nth-of-type(5) { animation-delay: 0.55s; }
.main-menu-mobile.open li:nth-of-type(6) { animation-delay: 0.6s; }

.main-menu-mobile ul {
    font-size: 30px;
    font-family: "Poppins", sans-serif;
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 0;
}
.main-menu-mobile ul li {
    display: block;
    position: relative;
    opacity: 0;
    padding: 10px;
}
.main-menu-mobile ul li a {
    display: block;
    position: relative;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.main-menu-mobile ul li a:hover { opacity: 0.8; }

@keyframes fadeInRight {
    0% { opacity: 0; left: 20%; }
    100% { opacity: 1; left: 0; }
}

/* Utility for locking scroll (used with mobile menu) ---------------------- */
.lock-scroll {
    overflow: hidden;
}

/* Buttons (project-specific) -------------------------------------------- */
.button {
    white-space: nowrap;
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
    background: #e5261f;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #fff;
    text-decoration: none;
    transition: all 0.15s ease;
}
.button:hover {
    color: #fff;
    background-color: #ea524d;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Call component --------------------------------------------------------- */
.call {
    position: relative;
    overflow: hidden;
    background-color: #fff6f8;
    border-radius: 4px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    z-index: 2;
}
@media (min-width: 576px) {
    .call {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.call .call-box-top {
    flex: 1 0 auto;
    padding: 20px;
}
.call .call-box-bottom {
    flex: auto;
    padding: 20px;
    border-top: 1px solid #ffdde4;
}
@media (min-width: 576px) {
    .call .call-box-bottom {
        flex: 0 0 auto;
        border: none;
    }
}
.call .call-name { font-size: 1.1rem; font-weight: bold; }
.call .call-phone { margin-bottom: 5px; }
.call .call-email a { color: #2f2f41; }
.call strong { font-weight: bold; }
.call svg {
    fill: #fff;
    position: absolute;
    bottom: -9px;
    right: 0;
    width: 100px;
    height: 100px;
}
@media (min-width: 576px) {
    .call svg { width: 120px; height: 120px; }
}

/* Titles and content styles --------------------------------------------- */
.title {
    color: #2f2f41;
    font-size: 48px;
    line-height: 1.2;
}
@media (min-width: 992px) { .title { font-size: 50px; } }

.content a { text-decoration: underline; }
.content img { max-width: 100%; height: auto; margin-top: 20px; }
.content strong { font-weight: bold; }
.content em { font-style: italic; }
.content p {
    font-family: "Poppins", sans-serif;
    line-height: 1.56;
    color: #5c5a5a;
}
.content h1, .content .h1 {
    font-family: "Poppins", sans-serif;
    font-size: 34px;
    line-height: 1.26;
    font-weight: normal;
    margin-top: 30px;
}
.content h2, .content .h2 {
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: normal;
    line-height: 1.4;
    margin-top: 30px;
}
.content h3, .content .h3 {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.4;
    font-weight: normal;
    margin-top: 30px;
}
.content ul, .content ol { margin-bottom: 20px; }
.content ul ul, .content ul ol, .content ol ul, .content ol ol { margin-bottom: 0; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li {
    margin-bottom: 5px;
    line-height: 1.56;
    margin-left: 20px;
    color: #5c5a5a;
}
.content hr { border: none; border-bottom: 1px solid #fff6f8; }
.content table { width: 100%; margin-top: 30px; margin-bottom: 30px; }
.content table th, .content table td {
    padding: 5px;
    vertical-align: top;
    border-top: 1px solid #fff6f8;
}
.content table thead th {
    vertical-align: bottom;
    border-bottom: 1px solid #fff6f8;
    text-align: left;
    font-weight: bold;
}
.content table tbody + tbody { border-top: 1px solid #fff6f8; }
.content blockquote {
    padding: 0 1em;
    color: #5c5a5a;
    border-left: 0.25em solid #f88379;
}

/* Feature component ----------------------------------------------------- */
.feature {
    height: 100%;
    border: 1px solid #fff6f8;
    border-radius: 3px;
    padding: 20px;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}
.feature .feature-image {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    display: flex;
    margin-bottom: 20px;
    text-align: center;
}
.feature img { width: 100%; height: auto; }
.feature .feature-content { margin-bottom: 0; margin-top: auto; }

/* Teams listing ---------------------------------------------------------- */
.page-teams .team-summary {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}
.page-teams .team-summary .team-image {
    height: 60px;
    width: 60px;
    margin-right: 10px;
    border-radius: 50%;
    overflow: hidden;
}
.page-teams .team-summary .team-image img { width: 60px; }
.page-teams .team-summary .team-meta { flex: 1; }
.page-teams .team-summary .team-meta h2,
.page-teams .team-summary .team-meta .h2 {
    margin: 0;
    font-size: 22px;
    font-weight: normal;
}
.page-teams .team-summary .team-meta p {
    color: #2f2f41;
    text-transform: uppercase;
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}
.page-teams .team-summary .team-content { margin-top: 20px; flex: 1 0 100%; }

.page-teams .team-summary-large {
    background-color: #fff6f8;
    padding: 30px;
    border-radius: 3px;
}
.page-teams .team-summary-large .team-image {
    height: 90px;
    width: 90px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
}
.page-teams .team-summary-large .team-image img { width: 90px; }

/* Service page tweaks --------------------------------------------------- */
.page-service .content > p:first-of-type {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 40px;
    font-weight: 400;
    color: #686868;
}

/* Body defaults --------------------------------------------------------- */
body {
    font-size: 16px;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
}
@media (min-width: 768px) {
    body { font-size: 16px; line-height: 1.3; }
}

/* End of custom styles */

/*---- Header ----*/
.header {
    background-color: #59bebe;
    display: block;
    text-align: center;
    padding: 10px 0;
}
.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem
}

.header img,
.header svg {
    display: inline-block;
    vertical-align: middle;
}

.header.header-absolute {
    position: absolute;
    z-index: 10;
    width: 100%;
    left: 0;
    top: 0;
}
.lock-scroll .header.header-absolute {
    position: static;
}

/*---- Intro ----*/
.intro {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.intro-info-caja {
    background-color: #b8cdc5;
}

.intro-info-caja h1,
.intro-info-caja p {
    margin-bottom: 0px;
}

.intro-info-header {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2f2f41;
}

.intro-info-text {
    font-size: 1.1rem;
    line-height: 26px;
    color: #5c5a5a;
}

/*
@media (min-width: 1200px) {
    .intro-info-header {
        font-size: 2.75rem;
    }

    .intro-info-text {
        font-size: 1.3rem;
        line-height: 30px;
    }
}
*/

.intro-mascotas-foto {
  width: 100%;
  transition: transform 0.3s ease;
  /* border: 1px solid red; */
}

@media (min-width: 992px) {
  .intro-mascotas-foto {
    width: 105%;
  }

  .intro-mascotas {
    transform: translate(-5%, 0%);
  }
}

@media (min-width: 1200px) {
  .intro-mascotas-foto {
    width: 110%;
  }

  .intro-mascotas {
    transform: translate(-10%, 0%);
  }
}

/*---- Nosotros ----*/
/* Reservado: estilos para la sección "Nosotros".
   No hay reglas activas por ahora; se mantiene este comentario como marcador
   evitando reglas vacías que generan advertencias en linters.
*/

.nosotros-header {
    text-align: center;
}

/* Aplicar margen superior en móvil para todos los .nosotros-item a partir del segundo */
#nosotros .row > div + div .nosotros-item {
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    /* En pantallas más grandes (desktop/tablet) las columnas están lado a lado; quitar el margen */
    #nosotros .row > div + div .nosotros-item {
        margin-top: 0;
    }
}

/*---- Strip ----*/
.strip {
    background-repeat: no-repeat;
    background-color: #ce7f89;
}

.descarga-header {
    color: #e4ecee;
}

.huella-svg {
  transition: filter 180ms ease, transform 180ms ease;
  cursor: pointer;
  display: inline-block;
}

.huella-svg:hover,
.huella-svg:focus {
  filter: brightness(0.77);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .huella-svg { transition: none; transform: none; }
}

/*---- Directorio ----*/
.directorio-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.directorio-header-img {
  height: clamp(60px, 8vw, 120px);
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.directorio-header-title {
  flex: 1 1 auto;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  color: #2f2f41;
}

/*---- Sub footer ----*/
.sub-footer {
    background: #59bebe;
    color: #fff;
    padding-top: 15px;
    padding-bottom: 15px;
}
@media (min-width: 768px) {
    .sub-footer { padding-top: 10px; padding-bottom: 10px; }
}
.sub-footer .sub-footer-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .sub-footer .sub-footer-inner { flex-direction: row; }
}
.sub-footer .copyright {
    margin-top: 10px;
    font-size: 14px;
}
.sub-footer .copyright a {
    font-weight: bold;
    color: inherit;
}
.sub-footer .social a:first-of-type { margin-left: -10px; }
.social { display: block; }
.social img { width: 20px; height: 20px; }
.social a { padding: 10px; display: inline-block; }
.social a:hover { opacity: 0.8; }
