/* ------------------ BASE ------------------ */

*{
box-sizing:border-box;
}

h1,h2,h3{
margin-top:10px;
}

/* ------------------ TABLA PEDIGREE ------------------ */

.pedigree-table{
border-collapse:collapse;
width:100%;
margin-top:20px;
}

.pedigree-table td{
border:1px solid #ccc;
padding:5px;
vertical-align:middle;
min-width:160px;
}

/* colores macho / hembra */

td.dog-male{
background:#d9e6f2 !important;
}

td.dog-female{
background:#ffffff !important;
}

td.dog-empty{
background:#ddf2cf !important;
}

/* scroll horizontal pedigree */

#pedigree-container{
overflow-x:auto;
width:100%;
}

/* ------------------ CARDS PERROS ------------------ */

.dog-card{
font-size:13px;
padding:5px;
line-height:1.2;
}

.dog-title{
font-weight:bold;
color:#003366;
}

.dog-work{
color:#c40000;
font-weight:bold;
}

.dog-year{
color:#000;
font-weight:bold;
}

.dog-reg{
color:#000;
}

.dog-health{
color:#00a000;
font-weight:bold;
}


/* repetici贸n gen茅tica */

.repeat-dog{
color:#c40000;
font-weight:bold;
background:#ffe6e6;
padding:2px 4px;
border-radius:3px;
}

.dog-high{
background:#ffcccc;
color:#b30000;
font-weight:bold;
}

.dog-medium{
background:#fff0b3;
font-weight:bold;
}

/* ------------------ CARD EJEMPLAR PRINCIPAL ------------------ */

.dog-main-card{
display:flex;
flex-wrap:wrap;
gap:20px;
background:white;
padding:15px;
border-radius:6px;
box-shadow:0 0 5px rgba(0,0,0,0.1);
margin-bottom:20px;
}

/* ------------------ FOTO DEL EJEMPLAR PRINCIPAL ------------------ */
.dog-main-photo img{
width:460px;
height:auto;
border-radius:10px;
object-fit:cover;
box-shadow:0 3px 10px rgba(0,0,0,0.3);
}

@media (max-width:768px){

.dog-main-photo img{
width:180px;
}
}

/*------------------ FOTO DE LA TABLA DE LOS EJEMPLARES */
.dog-photo{
width:140px;
height:auto;
margin-top:5px;
border-radius:6px;
}

@media (max-width:768px){

.dog-photo{
width:50px;
}

}
/* ------------------  ------------------ */
.dog-main-info{
flex:1;
}

.dog-main-name{
font-size:22px;
font-weight:bold;
margin-bottom:5px;
}

.dog-main-work{
color:#c40000;
font-weight:bold;
margin-top:3px;
}

.dog-main-year{
font-weight:bold;
margin-top:3px;
}

.dog-main-reg{
margin-top:3px;
}

.dog-main-health{
color:#009900;
font-weight:bold;
margin-top:3px;
}

/* ------------------ FORMULARIOS ------------------ */

form{
display:flex;
flex-wrap:wrap;
gap:10px;
align-items:center;
margin-bottom:20px;
}

form label{
font-weight:bold;
}

form select{
min-width:200px;
}

form button{
padding:8px 14px;
background:#2d7be5;
border:none;
color:white;
border-radius:5px;
cursor:pointer;
}

form button:hover{
background:#1f5fb5;
}

/* select2 responsive */

.select2-container{
width:100% !important;
max-width:300px;
}

/* ------------------ GENERACIONES ------------------ */

.gen-selector{
margin:10px 0;
text-align:right;
}

.gen-btn,
.gen-active{
display:inline-block;
padding:6px 10px;
margin:2px;
border-radius:4px;
text-decoration:none;
font-weight:bold;
font-size:12px;
}

.gen-btn{
background:#ddd;
color:black;
}

.gen-active{
background:#2d7be5;
color:white;
}

/* ------------------ LINKS PEDIGREE ------------------ */

.dog-link{
text-decoration:none;
color:#0b3d91;
font-weight:bold;
cursor:pointer;
}

.dog-link:hover{
text-decoration:underline;
color:#c00000;
}

/* ------------------ BREADCRUMB ------------------ */

.pedigree-breadcrumb{
margin-bottom:15px;
font-size:15px;
}

.breadcrumb-link{
text-decoration:none;
color:#1a4fa3;
font-weight:600;
}

.breadcrumb-link:hover{
text-decoration:underline;
}

.breadcrumb-current{
font-weight:bold;
color:#c00000;
}

/* ------------------ BOTONES ------------------ */

.pedigree-back{
display:inline-block;
margin-bottom:15px;
padding:6px 12px;
background:#444;
color:white;
text-decoration:none;
border-radius:4px;
}

.pedigree-back:hover{
background:#222;
}

.btn-search{
background:#2c7be5;
color:white;
padding:8px 14px;
text-decoration:none;
border-radius:4px;
font-weight:bold;
}

.btn-search:hover{
background:#1a5dc1;
}

/* ------------------ MENU PRINCIPAL ------------------ */

.main-menu{
background:#333;
padding:10px;
margin-bottom:15px;
}

.main-menu a{
color:white;
margin-right:20px;
text-decoration:none;
font-weight:bold;
}

.main-menu a:hover{
color:#ffd700;
}

/* ------------------ RESPONSIVE ------------------ */

@media (max-width:768px){

.dog-main-card{
flex-direction:column;
align-items:center;
text-align:center;
}

form{
flex-direction:column;
align-items:flex-start;
}

.gen-selector{
text-align:center;
}

.gen-btn,
.gen-active{
font-size:11px;
padding:5px 8px;
}

}

/* ---------------- MENU PRINCIPAL ---------------- */

.menu-container{
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
height:80vh;
text-align:center;
}

.menu-title{
font-size:32px;
margin-bottom:40px;
color:#333;
}

.menu-box{
display:flex;
gap:30px;
flex-wrap:wrap;
justify-content:center;
}

.menu-btn{
display:block;
padding:20px 35px;
background:#2d7be5;
color:white;
text-decoration:none;
font-size:18px;
font-weight:bold;
border-radius:8px;
box-shadow:0 4px 8px rgba(0,0,0,0.15);
transition:0.3s;
}

.menu-btn:hover{
background:#1f5fb5;
transform:translateY(-3px);
}

/* responsive */

@media (max-width:768px){

.menu-box{
flex-direction:column;
gap:20px;
}

.menu-btn{
width:220px;
font-size:16px;
}

}

.nav-logo a{
color:white;
text-decoration:none;
font-weight:bold;
font-size:18px;
}

.nav-links a{
color:white;
text-decoration:none;
margin-left:20px;
font-weight:bold;
}

.nav-links a:hover{
text-decoration:underline;
}

/* ---------- MOBILE ---------- */

@media (max-width:768px){

.navbar{
flex-direction:column;
align-items:center;
}

.nav-links{
margin-top:10px;
}

.nav-links a{
display:block;
margin:5px 0;
}

}
/* ---------------- NAVBAR ---------------- */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
background:#2d7be5;
padding:12px 20px;
color:white;
margin-bottom:20px;
}

.nav-logo a{
color:white;
text-decoration:none;
font-size:20px;
font-weight:bold;
}

.nav-links{
display:flex;
align-items:center;
}

.nav-links a{
color:white;
text-decoration:none;
margin-left:20px;
font-weight:bold;
padding:6px 10px;
border-radius:4px;
}

.nav-links a:hover{
background:rgba(255,255,255,0.2);
}

.nav-links a.active{
background:white;
color:#2d7be5;
}

.nav-toggle{
display:none;
font-size:22px;
cursor:pointer;
}

/* -------- MOBILE -------- */

@media (max-width:768px){

.nav-toggle{
display:block;
}

.nav-links{
display:none;
flex-direction:column;
width:100%;
margin-top:10px;
}

.nav-links a{
margin:5px 0;
}

}

.main-header{
background:#2c3e50;
color:white;
padding:15px;
font-size:22px;
}

.main-navbar{
background:#34495e;
padding:10px;
}

.main-navbar a{
color:white;
margin-right:20px;
text-decoration:none;
font-weight:bold;
}

.main-navbar a:hover{
color:#ffd700;
}

.main-footer{
margin-top:30px;
padding:10px;
background:#eee;
text-align:center;
}

.ads-container{
display:flex;
justify-content:center;
gap:20px;
margin:15px auto;
max-width:1200px;
}

.ad-box{
background:#f3f3f3;
border:1px solid #ccc;
padding:10px;
width:300px;
text-align:center;
font-size:14px;
}

@media (max-width:768px){

.ads-container{
flex-direction:column;
align-items:center;
}

.ad-box{
width:90%;
}

}

.main-content{
flex:3;
}

.sidebar-ads{
flex:1;
}

/* banner superior */

.ads-top{
display:flex;
justify-content:center;
margin:15px 0;
}

.ad-banner{
width:728px;
height:90px;
background:#ddd;
display:flex;
align-items:center;
justify-content:center;
border:1px solid #ccc;
}

/* publicidad lateral */

.ads-sidebar{
display:flex;
flex-direction:column;
gap:15px;
}

.ad-box{
border:1px solid #ccc;
padding:10px;
background:#f8f8f8;
text-align:center;
}

@media (max-width:900px){

.main-layout{
flex-direction:column;
}

.sidebar-ads{
order:2;
}

.ads-top{
display:none;
}

}

.pedigree-breadcrumb{
margin:15px 0;
padding:8px 12px;
background:#f4f6f9;
border-radius:6px;
font-size:14px;
}

.breadcrumb-link{
text-decoration:none;
color:#1a4fa3;
font-weight:600;
}

.breadcrumb-current{
color:#c00000;
font-weight:bold;
}

.navbar-logo{
display:flex;
align-items:center;
gap:10px;
font-weight:bold;
color:white;
}

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

.logo-img1{
height:35px;
width:auto;
}

/* WHATSAPP CHAT */

.whatsapp-chat{
position:fixed;
bottom:20px;
right:20px;
display:flex;
align-items:center;
gap:10px;
z-index:9999;
}

/* burbuja mensaje */

.whatsapp-message{
background:white;
padding:10px 14px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.2);
font-size:13px;
max-width:220px;
}

/* botón */

.whatsapp-button img{
width:55px;
height:55px;
border-radius:50%;
box-shadow:0 3px 10px rgba(0,0,0,0.3);
transition:transform 0.2s;
}

.whatsapp-button img:hover{
transform:scale(1.1);
}

/* WHATSAPP RESPONSIVE */

@media (max-width:768px){

.whatsapp-button img{
width:45px;
height:45px;
}

.whatsapp-message{
font-size:11px;
max-width:180px;
padding:8px 10px;
}

.whatsapp-chat{
bottom:15px;
right:15px;
}

}

@media (max-width:480px){

.whatsapp-button img{
width:40px;
height:40px;
}

.whatsapp-message{
display:none;
}

}

/* MOBILE */

@media (max-width:768px){

.whatsapp-chat{
position:fixed;
bottom:15px;
right:15px;
z-index:99999;
}

.whatsapp-button img{
width:45px;
height:45px;
}

.whatsapp-message{
display:none;
}

}

/* WHATSAPP FLOAT */

.whatsapp-chat{
position:fixed;
bottom:20px;
right:20px;
z-index:99999;
}

/* BOTON */

.whatsapp-button img{
width:55px;
height:55px;
border-radius:50%;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
animation:pulse 2s infinite;
}

/* ANIMACION */

@keyframes pulse{
0%{transform:scale(1)}
50%{transform:scale(1.1)}
100%{transform:scale(1)}
}

/* CAJA CHAT */

.whatsapp-box{
display:none;
position:absolute;
bottom:70px;
right:0;
width:260px;
background:white;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.2);
overflow:hidden;
font-family:Arial;
}

/* HEADER */

.whatsapp-header{
background:#25D366;
color:white;
padding:10px;
font-weight:bold;
display:flex;
justify-content:space-between;
}

/* TEXTO */

.whatsapp-text{
padding:10px;
font-size:13px;
}

/* BOTON CONTACTO */

.whatsapp-start{
display:block;
background:#25D366;
color:white;
text-align:center;
padding:10px;
text-decoration:none;
font-weight:bold;
}

.whatsapp-start:hover{
background:#1ebe5d;
}

/* MOBILE */

@media (max-width:768px){

.whatsapp-button img{
width:45px;
height:45px;
}

.whatsapp-box{
width:220px;
}

}

/* imagen principal */

.dog-main-img{
cursor:pointer;
transition:transform 0.2s;
}

.dog-main-img:hover{
transform:scale(1.05);
}

/* VISOR DE IMAGEN */

.image-viewer{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
justify-content:center;
align-items:center;
z-index:99999;
}

.image-viewer img{
max-width:90%;
max-height:90%;
border-radius:8px;
}

.linebreeding-table{
width:40%;
border-collapse:collapse;
margin-top:10px;
background:white;
font-size:13px;
box-shadow:0 2px 4px rgba(0,0,0,0.1);
}

.linebreeding-table th{
background:#1f4e79;
color:white;
padding:6px;
text-align:left;
}

.linebreeding-table td{
border-bottom:1px solid #ddd;
padding:6px;
}

.linebreeding-table tr:hover{
background:#f0f6ff;
}

.dog-main-chip{
color:#1e5bb8;
font-weight:bold;
margin-top:4px;
}

.hero {
    padding: 60px 20px;
}

.logo {
    width: 220px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

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

/* BOTONES REALES */
.btn {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: bold;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* BOTÓN AZUL */
.primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.primary:hover {
    transform: translateY(-4px);
}

/* BOTÓN VERDE */
.secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.secondary:hover {
    transform: translateY(-4px);
}

/* SEO SECTION */
.seo-content {
    margin-top: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 20px;
}

.seo-content h2 {
    margin-top: 30px;
    font-size: 1.6rem;
}

.seo-content p {
    color: #444;
    line-height: 1.6;
}

/* RESET BÁSICO */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #eef2f7, #dbeafe);
    color: #111;
}

/* HERO */
.hero {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
}

/* LOGO */
.logo {
    width: 220px;
    margin-bottom: 20px;
}

/* TITULO */
h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* TEXTO */
#description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #444;
}

/* BOTONES CONTENEDOR */
.buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* BOTONES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    color: white;
    transition: all 0.25s ease;
}

/* BOTÓN PRINCIPAL */
.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* BOTÓN SECUNDARIO */
.secondary {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* HOVER */
.btn:hover {
    transform: translateY(-4px) scale(1.03);
}

/* IDIOMA */
.top-bar {
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang-btn {
    border: none;
    padding: 6px 10px;
    margin-left: 5px;
    border-radius: 6px;
    cursor: pointer;
    background: #e5e7eb;
}

.lang-btn:hover {
    background: #cbd5e1;
}

/* SECCIÓN SEO */
.seo-content {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.seo-content h2 {
    margin-top: 0px;
    font-size: 1.6rem;
}

.seo-content p {
    color: #444;
    line-height: 1.6;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
    font-size: 14px;
    color: #555;
}

/* RESPONSIVE 🔥 */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    #description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .logo {
        width: 180px;
    }
}

.buttons {
    margin-top: 20px;
}

.seo-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 30px;
}

.seo-content h2 {
    margin-top: 20px;
}

.seo-content p {
    margin-bottom: 15px;
}

main {
    padding: 0 20px 40px;
}

.hero::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #3b82f6;
    margin: 25px auto 0;
    border-radius: 10px;
}

.cta-text {
    margin-top: 20px;
    font-size: 1rem;
    color: #555;
}

.btn-box {
    text-align: center;
}

.btn-box small {
    display: block;
    margin-top: 6px;
    color: #555;
    font-size: 0.85rem;
}


.search-box {
    margin: 25px auto;
    display: flex;
    justify-content: center;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    overflow: visible; /* 🔥 CLAVE */
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 14px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.search-box button:hover {
    background: #2563eb;
}

.search-box select {
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
}

.search-box input {
    border-radius: 12px 0 0 12px;
}

.search-box button {
    border-radius: 0 12px 12px 0;
}

.hero {
    position: relative;
    z-index: 1;
}

.resultado-item {
    padding: 10px;
    cursor: pointer;
    color: black; /* 🔥 CLAVE */
    font-weight: 500;
    background: white;
}

.resultado-item:hover {
    background: #f1f5f9;
}

.search-box {
    max-width: 500px;
    margin: 25px auto;
    z-index: 99999;
}

.resultados-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    max-height: 200px;
    overflow-y: auto;

    display: none;
    z-index: 9999999 !important;
    pointer-events: auto;
}

.hero {
    overflow: visible !important;
}

/* 🔥 ETAPA 2 DEL BUSCADOR ****************************************/

.resultado-item.active {
    background: #3b82f6;
    color: white;
}

.resultado-item strong {
    color: #2563eb;
}

/* 🔥 CORRECCIÓN SOLO PARA PEDIGREE */
.pedigree-page {
    text-align: left;
}

/* Ficha del perro */
.pedigree-page .dog-main-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    text-align: left;
}

/* Info del perro */
.pedigree-page .dog-main-info {
    text-align: left;
}

/* Breadcrumb */
.pedigree-page .pedigree-breadcrumb {
    text-align: left;
}

/* Tabla */
.pedigree-page table {
    text-align: left;
}

/* Títulos */
.pedigree-page h3 {
    text-align: left;
}

/* Árbol */
.pedigree-page .pedigree-table {
    margin: 0 auto; /* centra tabla pero contenido alineado */
}

.main-container {
    margin: 0 auto;
    padding: 0 15px;
}

.whatsapp-btn {
    right: calc((100vw - 1200px) / 2 + 20px);
}

/* móvil */
@media (max-width: 1200px) {
    .whatsapp-btn {
        right: 20px;
    }
}

.home-camada {
    margin-top: 5px;
    text-align: center;
    font-size: 16px;
    color: #333;
}

.btn-camada {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #2f6fd6;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-camada:hover {
    background: #1e4fa8;
}

/* HEADER FULL WIDTH */
.full-header {
    width: 100%;
    background: #2d7be5;
}

/* NAVBAR ocupa todo */
.navbar {
    max-width: 1400px;
    margin: 0 auto;
}

/* LAYOUT CENTRAL */
.main-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1800px;
    margin: 20px auto;
    gap: 20px;
    align-items: stretch; /* 👈 IMPORTANTE */
}

/* CONTENIDO */
.main-container {
    flex: 1; /* 🔥 ocupa el espacio restante */
    display: flex;
    flex-direction: column;
}

.sidebar-left,
.sidebar-right {
    width: 280px;              /* 🔥 ancho fijo */
    flex: 0 0 300px;           /* 🔥 NO se encogen */
}

.ad-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.ad-box:hover {
    transform: translateY(-5px);
}

.ad-box img {
    width: 100%;
    display: block;
}

.ads-top {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 1200px;   /* 👈 evita que el fondo se vea demasiado ancho */
  margin: 0 auto;      /* 👈 centra el bloque */
  flex-wrap: wrap;     /* 👈 clave para responsive */
}

.ad-banner {
  flex: 1 1 45%;   /* 👈 2 por fila en desktop */
}

.ad-banner img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .ads-top {
    flex-direction: column;   /* 👈 se apilan */
    align-items: center;
  }

  .ad-banner {
    width: 100%;
  }
}

.main-container {
  flex: 1;
  width: 100%;
  min-width: 0;
}

.main-container > * {
  width: 100%;
}
/* COLOR DE FONDO MENU TOP DEL CENTRO DE LA IMAGEN Y TEXTO  */
.full-header {
  width: 100%;
  background: #2f6ecb; /* tu azul */
}

.header-container {
  max-width: 1200px;   /* 🔥 controla el ancho */
  margin: 0 auto;      /* 🔥 centra */
  width: 100%;
}