* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #333;
}

/* HEADER */
.header {
    background: #0d2a45;
    color: white;
    padding: 25px 40px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo a la izquierda */
.logo {
    width: 90px;
    height: auto;
    border: 2px solid white;
    padding: 6px;
}

/* Texto a la derecha */
.header-text {
    text-align: right;
    font-family: 'Montserrat', sans-serif;
}

.header-text h1 {
font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.header-text p {
    margin: 4px 0 0;
    color: #f2c94c;
    font-weight: 500;
}



.tramites{
padding:60px 8%;
background:#ccd2d8;
}

.tramites h2{
 font-family: 'Cinzel', serif;
text-align:center;
color:#2b5f8a;
margin-bottom:40px;
font-weight:600;
letter-spacing:.5px;
}
.tramites h3{
    font-family: 'Courier New', Courier, monospace;
    text-align: center;

}




@media (max-width: 768px) {

  body {
    font-size: 18px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }

  button {
    font-size: 18px;
    padding: 12px 20px;
  }

}





/* grid */
.grid-tramites{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

/* tarjeta */
.tramite{
background:white;
border-radius:18px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,.12);
transition:.3s;
display:flex;
flex-direction:column;
}

.tramite:hover{
transform:translateY(-6px);
box-shadow:0 18px 35px rgba(0,0,0,.18);
}

/* imagen */
.tramite img{
width:100%;
height:170px;
object-fit:cover;
}

/* contenido */
.tramite h3{
padding:15px 15px 5px;
font-size:15px;
color:#2b5f8a;
min-height:55px;
}

.tramite p{
padding:0 15px 10px;
font-size:13px;
color:#6f8fa8;
}

/* botones */
.tramite a{
margin:6px 15px;
padding:10px;
text-align:center;
border-radius:25px;
text-decoration:none;
font-size:13px;
transition:.25s;
}

/* aviso */
.btn{
background:#e9f2f8;
color:#2b5f8a;
border:1px solid #cfddea;
}

.btn:hover{
background:#dbe9f4;
}

/* agendar */
.btn-sec{
background:#4c89b8;
color:white;
}

.btn-sec:hover{
background:#3b739e;
}

/* móvil */
@media(max-width:600px){
.tramites{padding:40px 5%;}
.tramite img{height:140px;}
}






.tramites .tramite h3 {
    font-size: 15px;   /* Cambia el tamaño aquí */
    font-weight: bold;
}
@media (max-width: 768px) {
    .tramites .tramite h3 {
        font-size: 24px;
    }
}











/* HEADER */
.header {
    background: #0d2a45;
    color: white;
    padding: 15px 40px;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 140px; /* solo una vez */
    height: 140%;
}

.header-text h1 {
    font-family: 'Cinzel', serif;
    margin: 0;
    font-size: 24px;
}

.header-text p {
    margin: 0;
    font-size: 14px;
    color: #d4af37;
}



/* INICIO */
.inicio {
    background: linear-gradient(135deg, #0d2a45, #163e63);
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.inicio h2 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.inicio p {
    font-size: 18px;
    max-width: 600px;
    margin: auto;
}











/* =========================
   VIDEO PRESENTACIÓN
========================= */
.video-notaria {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
}

.video-notaria video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Oscurece un poco para que el texto se lea */
.video-notaria::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.video-notaria .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
}

.video-notaria h2 {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.video-notaria p {
    font-size: 16px;
    opacity: 0.9;
}











.horarios {
    padding: 60px 20px;
    background: linear-gradient(135deg, #6b0f1a, #1a1a1a);
    text-align: center;
}

.horarios h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.horarios-box {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.dia {
    background: #fff;
    padding: 25px 35px;
    border-radius: 14px;
    min-width: 220px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.dia span {
    display: block;
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
}

.dia strong {
    font-size: 20px;
    color: #6b0f1a;
}

/* Domingo cerrado */
.dia.cerrado {
    background: #f3f3f3;
}

.dia.cerrado strong {
    color: #999;
}













/* =========================
   UBICACIÓN Y MAPA
========================= */
.ubicacion {
    padding: 70px 20px;
    background: #f5f5f5;
    text-align: center;
}

.ubicacion h2 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #6b0f1a;
    margin-bottom: 45px;
    letter-spacing: 2px;
}

.ubicacion-contenido {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

/* Caja dirección */
.direccion-box {
    background: #fff;
    padding: 35px;
    border-radius: 16px;
    max-width: 380px;
    text-align: left;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.direccion-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.direccion-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.referencia {
    margin-top: 15px;
    font-weight: bold;
    color: #6b0f1a;
}

/* Caja mapa */
.mapa-box {
    width: 420px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.mapa-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* =========================
   CONTACTO
========================= */
.contacto {
    padding: 80px 20px;
    background: linear-gradient(135deg, #6b0f1a, #1a1a1a);
    color: #fff;
    text-align: center;
}

.contacto h2 {
    font-family: 'Cinzel', serif;
    font-size: 34px;
    margin-bottom: 45px;
    letter-spacing: 2px;
}

.contacto-contenido {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contacto-box {
    background: rgba(255,255,255,0.1);
    padding: 35px;
    border-radius: 16px;
    max-width: 380px;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(6px);
}

.contacto-box h3 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    margin-bottom: 20px;
}

.contacto-box p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* FORMULARIO */
.form-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-box input,
.form-box textarea {
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.form-box button {
    background: #cfa34a;
    color: #000;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.form-box button:hover {
    background: #e2b85c;
}



.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:200px;
    height:200px;
    background:#25D366;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    box-shadow:0 4px 12px rgba(0,0,0,.3);
    z-index:999;
    transition:.3s;
}

.whatsapp-float img{
    width:60px;
}

.whatsapp-float:hover{
    transform:scale(1.1);
}

.whatsapp-text{
    position:absolute;
    right:250px;
    background:#25D366;
    color:white;
    padding:10px 16px;
    border-radius:5px;
    font-size:14px;
}








.footer{
    background:#111827;
    padding:30px 15px;
    text-align:center;
    margin-top:70px;
    border-top:4px solid #d4af37; /* línea amarilla fuerte arriba */
}

.footer a{
    color:#d4af37; /* amarillo visible */
    text-decoration:none;
    font-family:'Montserrat',sans-serif;
    font-size:15px;
    letter-spacing:1px;
    padding:12px 28px;
    border-radius:30px;
    transition:.3s ease;
    display:inline-block;
    border:2px solid #d4af37;
    font-weight:500;
}

.footer a:hover{
    background:#d4af37;
    color:#111;
    transform:translateY(-3px);
    box-shadow:0 8px 15px rgba(0,0,0,.35);
}

/* Responsive */
@media(max-width:600px){
    .footer a{
        font-size:14px;
        padding:10px 22px;
    }
}

































































@media(max-width:768px){

.header-container{
flex-direction:column;
text-align:center;
}

.logo{
width:120px;
margin-bottom:10px;
}

.grid-tramites{
grid-template-columns:1fr;
}

.tramite{
margin-bottom:25px;
}

.inicio h2{
font-size:22px;
}

.whatsapp-float{
width:50px;
height:50px;
}

.whatsapp-float img{
width:28px;
}

table{
font-size:12px;
}

form{
width:90%;
}
}