

    img {
  max-width: 100%;
  height: auto;
}


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.site-footer {
  background: linear-gradient(180deg, #0b2a4f, #0a2342);
  color: #fff;
  padding: 45px 25px 25px;
  font-size: 14px;
}

input, textarea {
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  transform: scale(1.02);
}

input:invalid {
  border-color: #e53935;
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}


.char-counter{
    display:block;
    margin-top:-8px;
    margin-bottom:20px;
    font-size:13px;
    color:#999;
    text-align:right;
    transition:color .3s ease;
}

/* =========================
   FOOTER CORPORATIVO ELITE
========================= */

.rnc-title {
  color: #ffb3b3;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.rnc-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffb3b3;
  transition: width 0.3s ease;
}

.rnc-title:hover::after {
  width: 100%;
}

.rnc-title:hover {
  color: #ffffff;
}

.rnc-number {
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}


.footer-block a[href^="tel"] {
  transition: all .3s ease;
}

.footer-block a[href^="tel"]:hover {
  letter-spacing: 0.5px;
}


.map-link{
    position: relative;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

/* Línea animada elegante */
.map-link::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #ffb3b3;
    transition: width 0.35s ease;
}

.map-link:hover{
    color: #ffffff;
}

.map-link:hover::after{
    width: 100%;
}

.footer-block strong i{
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-copy {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}

.rnc-number {
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
}


.map-link:hover + i,
.map-link:hover ~ i{
    transform: scale(1.1);
}


.site-footer {
  background: linear-gradient(145deg, #0b2343, #123b75 60%, #0f2f5d);
  color: #ffffff;
  padding: 60px 20px;
  font-size: 13.5px;
  position: relative;
  overflow: hidden;
}

/* Línea superior fija elegante */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb3b3, transparent);
  opacity: 0.35;
}

/* Línea shimmer ultra sutil */
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffb3b3, transparent);
  animation: shimmer 8s linear infinite;
  opacity: 0.15;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Grid */

.footer-inner {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 60px;
  padding-bottom: 30px; /* para que llegue justo antes del copy */
}

.contact-info {
  margin-bottom: 10px;
  line-height: 1.6;
}

.contact-info a {
  color: #ffb6b6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #ffffff;
}

.gmail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.gmail-link:hover {
  color: #ffb6b6;
  border-bottom: 2px solid #ffb6b6;
}

.footer-block {
  text-align: center;
}

.footer-block strong {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: #ffb6b6;
}

.footer-block p {
  margin: 0;
  line-height: 1.55; /* más compacto */
  max-width: 380px;
  margin-inline: auto;
  font-size: 14px;
}



.footer-block:hover {
  opacity: 0.92;
}




.footer-block:hover strong {
  color: #ffffff;
}

/* Iconos */
.footer-block i {
  font-size: 14px;
}

/* Enlaces */
.site-footer a {
  color: #ffb3b3;
  text-decoration: none;
  position: relative;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Línea animada del email */
.site-footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffb3b3;
  transition: width 0.3s ease;
}

.site-footer a:hover::after {
  width: 100%;
}

.site-footer a:hover {
  color: #ffffff;
}

/* Evita cortes raros en desktop */
.footer-block a {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .footer-block a {
    white-space: normal;
  }
}



@media (min-width: 901px) {

  .site-footer {
    position: relative;
  }

  .footer-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
  }

  /* ==============================
     SEPARADORES VERTICALES
     ============================== */

  .footer-inner::before,
  .footer-inner::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.18);
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  /* Dirección | Contacto */
  .footer-inner::before {
    left: calc(100% * 1.3 / (1.3 + 1.5 + 1));
  }

  /* Contacto | RNC */
  .footer-inner::after {
    left: calc(100% * (1.3 + 1.5) / (1.3 + 1.5 + 1));
  }

  /* ==============================
     HOVER – LÓGICA ORIGINAL
     ============================== */

  /* Dirección */
  .footer-inner:has(.footer-block:nth-child(1):hover)::before {
    background: #ffb3b3;
    box-shadow: 0 0 10px rgba(255,179,179,0.65);
  }

  /* Contacto */
  .footer-inner:has(.footer-block:nth-child(2):hover)::before,
  .footer-inner:has(.footer-block:nth-child(2):hover)::after {
    background: #ffb3b3;
    box-shadow: 0 0 10px rgba(255,179,179,0.65);
  }

  /* RNC */
  .footer-inner:has(.footer-block:nth-child(3):hover)::after {
    background: #ffb3b3;
    box-shadow: 0 0 10px rgba(255,179,179,0.65);
  }
}




.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
  width: 100%;
}



/* Responsive */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-block {
    padding-left: 0;
  }

  .footer-block::before {
    display: none;
  }
}



body{
    font-family:'Inter', sans-serif;
    background: linear-gradient(180deg,#f2f5ff,#ffffff,#fdf1f3);
    color:#2c2c2c;
    line-height:1.7;
}

.section h2,
.hero-content h1{
    font-family:'Playfair Display', serif;
}

.section{
    padding:100px 120px;
    background:rgba(255,255,255,.75);
    border-radius:30px;
    margin:60px auto;
    max-width:1300px;
    box-shadow:0 20px 45px rgba(0,0,0,.06);
    transition:.4s ease;
}

.section:hover{
    transform:translateY(-6px);
    box-shadow:0 30px 70px rgba(0,0,0,.12);
}

.section ul{
    margin-top:20px;
    padding-left:0;
    list-style:none;
}

.section ul li{
    padding:12px 0 12px 35px;
    position:relative;
    font-size:16px;
}

.section ul li::before{
    content:"✔";
    position:absolute;
    left:0;
    color:#c62828;
    font-weight:bold;
}


/* NAVBAR */
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 70px;
    background:#143f7a;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;

    font-size:24px;
    font-weight:700;
    letter-spacing:.5px;

    color:#fff;
    cursor:pointer;
    transition:.3s ease;
}

.logo img{
    height:48px;                 /* presencia */
    width:auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
    transition:.35s ease;
}

/* efecto hover elegante */
.logo:hover img{
    transform:scale(1.06);
}

.logo:hover span{
    color:#ffb3b3;
}

.logo img{
    background:#fff;
    padding:6px;
    border-radius:10px;
}

.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.navbar::after{
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:1px;
    background:rgba(255,255,255,.15);
}


.menu{
    display:flex;
    list-style:none;
    gap:30px;
}

.menu a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
}

.menu a{
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
    text-decoration:none;
    font-weight:500;
    position:relative;
    padding:8px 4px;
    cursor:pointer;
    transition:all .3s ease;
}

/* iconos */
.menu i{
    font-size:15px;
    opacity:.85;
    transition:.3s;
}

/* hover general */
.menu a:hover{
    color:#ffdddd;
}

/* línea animada debajo */
.menu a::after{
    content:"";
    position:absolute;
    bottom:-4px;
    left:0;
    width:0;
    height:2px;
    background:#ff5252;
    transition:.35s ease;
}

.menu a:hover::after{
    width:100%;
}

/* icono con movimiento */
.menu a:hover i{
    transform:translateY(-2px);
    opacity:1;
}

.btn-contacto{
     background: #e53935;
    padding: 12px 26px;     
    border-radius:999px;

    font-size:16px;        
    font-weight:600;
    line-height:1;

    display:flex;
    align-items:center;
    gap:10px;
background: linear-gradient(135deg, #e53935, #d32f2f);
    white-space:nowrap;
    transition:.3s ease;
}

.form-message{
    margin-top:20px;
    font-size:15px;
    text-align:center;
    display:none;
}

.form-message.error{
    display:block;
    color:#b71c1c;
}

.form-message.success{
    display:block;
    color:#1e88e5;
}



.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: #ffffff;
  color: #d32f2f;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: #f2f2f2;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}



.btn-contacto{
    min-height:48px;  
      
}
.btn-contacto i{
    font-size:14px;
}

.menu li{
    display:flex;
    align-items:center;
}


.btn-contacto:hover{
    background:#c62828;
    box-shadow:0 8px 22px rgba(255,82,82,.45);
    transform:translateY(-1px);
}

.menu a,
.btn-contacto,
.logo{
    cursor:pointer;
}

.navbar{
    position:static;
    top:0;
    z-index:1000;
    backdrop-filter: blur(8px);
}


.btn-contacto::after{
    display:none;
}


/* HERO */


.hero{
    background:linear-gradient(135deg,#5f6ad4,#c74b65);
    color:#fff;
    padding-bottom:120px;
}

.hero-content{
    text-align:center;
    margin-top:80px;
    padding:0 20px;
}

.hero-content h1{
    font-size:50px;
    margin-bottom:20px;
}

.hero-content p{
    max-width:950px;
    margin:auto;
    font-size:18px;
    opacity:.95;
}

.hero-buttons{
    margin-top:40px;
}

.hero-buttons a{
    margin:0 10px;
    padding:15px 35px;
    border-radius:30px;
    text-decoration:none;
    font-weight:600;
}

.btn-primary{
    background:#fff;
    color:#c62828;
}

.btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.15);
}

/* SECTIONS */
.section{
    padding:70px 120px;
}



.section{
    background:rgba(255,255,255,.75);
    border-radius:28px;
    margin:40px auto;
    max-width:1400px;
}

.section{
    margin:0;
}


@media(max-width:900px){
    .section{
        padding:60px 30px;
    }
}


.section h2{
    font-size:38px;
    color:#143f7a;
    margin-bottom:25px;
}

.section p{
    max-width:1000px;
    font-size:17px;
    margin-bottom:22px;
}

.about-section{
    background: linear-gradient(90deg,#7e6ab6,#c04f6f);
    padding: 120px 0;   /* 🔥 esto hace que llegue */
}

.services-section{
    background:#fff;
    padding:120px 0;
    width:100%;
}

.about-container{
    background:#fff;
    border-radius:40px;
    padding:80px;
    max-width:1100px;
    margin:0 auto;
    box-shadow:0 30px 80px rgba(0,0,0,.12);
}


/* CARDS */
.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
    margin-top:45px;
    padding:15px;
}

.card{  
    position: relative;      
    overflow: hidden;       
    background:linear-gradient(180deg,#ffffff,#f5f7ff);
    padding:36px;
    border-radius:22px;
    box-shadow:0 18px 45px rgba(0,0,0,.09);
    transition:.35s ease;
}

/* Barra superior */
.card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:5px;
    background:linear-gradient(90deg,#c62828,#5f6ad4);
    opacity:0;
    transform:scaleX(0);
    transform-origin:left;
    animation:showBar 0.6s ease forwards;
    animation-delay:1s;
}

/* BORDE INTERNO iluminado en hover */
.card::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    padding:3px; /* grosor del borde */
    background:linear-gradient(90deg,#c62828,#5f6ad4);
    opacity:0;
    transition: opacity .35s ease;
    pointer-events: none;

    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.card:hover{
    transform:translateY(-12px);
    box-shadow:0 35px 80px rgba(0,0,0,.18);
}

.card:hover::after{
    opacity:1;
}

.card h3{
    font-family:'Playfair Display', serif;
    color:#143f7a;
    margin-bottom:18px;
}

.card-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.card-link .card{
    height:100%;
}


@keyframes showBar{
    to{
        opacity:1;
        transform:scaleX(1);
    }
}

/* ACCORDION SERVICIOS */
.service-header{
    display:flex;
    justify-content:space-between;
    cursor:pointer;
}

.service-content{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
}


/* ===============================
   FORM SECTION MODERNA
================================ */
.form-section{
    background:linear-gradient(135deg,#0d3b66,#1e88e5);
    color:#fff;
    padding:110px 20px;
    overflow:hidden;
    position:relative;
}

/* Efecto decorativo */
.form-section::before{
    content:"";
    position:absolute;
    top:-120px;
    left:-120px;
    width:320px;
    height:320px;
    background:rgba(255,255,255,.08);
    border-radius:50%;
}

.form-section::after{
    content:"";
    position:absolute;
    bottom:-150px;
    right:-150px;
    width:380px;
    height:380px;
    background:rgba(255,255,255,.06);
    border-radius:50%;
}

/* ===============================
   CONTENEDOR
================================ */
.contact-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:70px;
    align-items:center;
    position:relative;
    z-index:2;
}

/* ===============================
   TEXTO IZQUIERDA
================================ */
.contact-text{
    text-align:left;
    animation:fadeLeft 1s ease both;
}

.contact-text h3{
    font-size:60px;
    font-weight:800;
    line-height:1.05;
    margin-bottom:22px;
    color:#fff;
}

.contact-text p{
    font-size:18px;
    line-height:1.8;
    color:rgba(255,255,255,.92);
    max-width:520px;
}

/* Cards extra */
.contact-extra{
    margin-top:30px;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.contact-extra div{
    background:rgba(255,255,255,.12);
    padding:14px 18px;
    border-radius:18px;
    font-size:16px;
    backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,.15);
    transition:.3s ease;
}

.contact-extra div:hover{
    transform:translateX(8px);
    background:rgba(255,255,255,.18);
}

/* ===============================
   FORM WRAPPER
================================ */
.form-wrapper{
    display:flex;
    justify-content:center;
    animation:fadeUp 1.1s ease both;
}

/* ===============================
   FORMULARIO
================================ */
form{
    background:rgba(255,255,255,.96);
    padding:55px 50px;
    border-radius:28px;
    width:100%;
    max-width:520px;
    box-shadow:0 25px 70px rgba(0,0,0,.35);
    border:1px solid rgba(255,255,255,.6);
    position:relative;
}

/* ===============================
   TITULO FORM
================================ */

.form-title{
    text-align:center;
    font-size:44px;
    font-weight:900;
    margin-bottom:45px;
    color:#0d3b66;
    letter-spacing:1px;
    position:relative; /* IMPORTANTE */
}

/* linea base */
.form-title::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-18px;
    transform:translateX(-50%);
    width:160px;
    height:7px;
    border-radius:20px;
    background:linear-gradient(90deg,#ff2d2d,#ff6a6a,#ff2d2d);
    box-shadow:0 0 12px rgba(255, 45, 45, 0.5);
    overflow:hidden;
    z-index:1;
}

/* brillo que se mueve */
.form-title::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:-18px;
    width:50px;
    height:7px;
    border-radius:20px;
    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.9),
        transparent
    );
    transform:translateX(-50%);
    animation:lineGlow 1.5s infinite linear;
    z-index:2;
}

/* animación real */
@keyframes lineGlow{
    0%{
        transform:translateX(-50%) translateX(-90px);
        opacity:0;
    }
    30%{
        opacity:1;
    }
    70%{
        opacity:1;
    }
    100%{
        transform:translateX(-50%) translateX(90px);
        opacity:0;
    }
}


/* ===============================
   INPUT CON ICONOS
================================ */
.input-group{
    position:relative;
    margin-bottom:22px;
}

.input-group i{
    position:absolute;
    top:50%;
    left:18px;
    transform:translateY(-50%);
    font-size:18px;
    color:#e53935; /* ROJO */
}

.contact-text p{
    color:rgba(255,255,255,.95) !important;
}


.input-group input,
.input-group textarea{
    width:100%;
    padding:16px 18px 16px 52px;
    border-radius:16px;
    border:2px solid #e4e4e4;
    font-size:15px;
    outline:none;
    transition:.25s ease;
    background:#fff;
}

/* textarea */
.input-group textarea{
    resize:none;
    min-height:140px;
    max-height:140px;
    padding-top:16px;
}

/* hover */
.input-group input:hover,
.input-group textarea:hover{
    border-color:#1e88e5;
}

/* focus */
.input-group input:focus,
.input-group textarea:focus{
    border-color:#0d3b66;
    box-shadow:0 0 0 4px rgba(30,136,229,0.2);
}

/* ===============================
   BOTON MODERNO
================================ */
form button{
    width:100%;
    background:linear-gradient(135deg,#e53935,#ff5252);
    color:#fff;
    border:none;
    padding:16px;
    border-radius:35px;
    font-size:17px;
    font-weight:800;
    cursor:pointer;
    transition:.3s ease;
    box-shadow:0 10px 30px rgba(229,57,53,.35);
}

form button:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 45px rgba(229,57,53,.55);
}

form button:active{
    transform:scale(.97);
}


/* ===============================
   ANIMACIONES
================================ */
@keyframes fadeUp{
    from{opacity:0; transform:translateY(30px);}
    to{opacity:1; transform:translateY(0);}
}

@keyframes fadeLeft{
    from{opacity:0; transform:translateX(-30px);}
    to{opacity:1; transform:translateX(0);}
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width:900px){
    .contact-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .contact-text{
        text-align:center;
    }

    .contact-text h3{
        font-size:48px;
    }
}





/* RESPONSIVE */
@media(max-width:900px){
    .contact-container{
        grid-template-columns:1fr;
        text-align:center;
    }

    .contact-text p{
        margin:auto;
    }
}


.logo-box{
    display:flex;
    align-items:center;
    gap:14px;

    background:#fff;
    padding:10px 22px;
    border-radius:16px;

    box-shadow:0 12px 35px rgba(0,0,0,.18);
    cursor:pointer;

    transition:.35s ease;
}

.logo-box img{
    height:42px;
    width:auto;
}

.logo-box span{
    font-size:24px;     /* antes 22px */
    font-weight:800;
    color:#0d2a52;
    letter-spacing:1px;
}

.logo-box{
    background:#ffffff;
    border:1px solid rgba(0,0,0,.05);  
}

.logo-box{
    background:#ffffff;
    border:1px solid rgba(20,63,122,.15);
}


.logo-box{
    padding:8px 20px;
    border-radius:14px;
}

.logo-box{
    box-shadow:
      0 10px 30px rgba(0,0,0,.18),
      inset 0 1px 0 rgba(255,255,255,.6);
}
.logo-box span{
    text-transform:uppercase;
}



/* hover elegant */
.logo-box:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 45px rgba(0,0,0,.25);
}


.navbar{
    padding:14px 70px;
}

.logo-box{
    padding:8px 18px;
}

.menu a:hover span{
    letter-spacing:.5px;
}

.hero-content h1{
    font-size:46px;
}

.btn-primary{
    box-shadow:0 15px 40px rgba(255,255,255,.35);
}


/* FOOTER */
footer{
    background:#0d2a52;
    color:#fff;
    text-align:center;
    padding:30px;
    font-size:14px;
}

/* ANIMACIONES */
.fade-up{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.fade-up.show{
    opacity:1;
    transform:translateY(0);
}

html{ scroll-behavior:smooth; }

@media(max-width:900px){
    .navbar{ flex-direction:column; gap:15px; }
    .section{ padding:80px 30px; }
}

.service-header span{
    font-size:22px;
    font-weight:bold;
    color:#c62828;
    transition:.3s;
}

.card:hover .service-header span{
    transform:rotate(45deg);
}

.section p{
    font-size:17px;
    color:#444;
    max-width:1050px;
}
.section ul li{
    font-size:16px;
    color:#444;
}
.section ul li::before{
    font-size:14px;
}
/* BOTÓN SCROLL TO TOP */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #0b3c74;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(15px) scale(0.9);
  transition:
    background 0.25s ease,
    transform 0.3s cubic-bezier(.25,.8,.25,1),
    left 0.25s ease,
    right 0.25s ease,
    opacity 0.2s ease;
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#scrollTopBtn.red {
  background: #e53935;
}

#scrollTopBtn.left {
  right: auto;
  left: 30px;
}

#scrollTopBtn.magnet {
  transform: translateY(0) scale(1.05);
}

/* TABLET */
@media (max-width: 1024px) {
  #scrollTopBtn {
    width: 48px;
    height: 48px;
    bottom: 24px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  #scrollTopBtn {
    width: 42px;
    height: 42px;
    bottom: 20px;
    font-size: 16px;
  }
}

/* MÓVIL CHICO */
@media (max-width: 480px) {
  #scrollTopBtn {
    width: 38px;
    height: 38px;
    bottom: 16px;
    font-size: 14px;
  }
}

@media (hover: none) {
  #scrollTopBtn.magnet {
    transform: none;
  }
}

/* ==============================
   RESPONSIVE FIX (SIN DAÑAR DISEÑO)
================================= */

/* TABLET */
@media screen and (max-width: 1024px) {

  .navbar {
    padding: 16px 30px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section {
    padding: 70px 60px;
  }

  .about-container {
    padding: 60px;
  }

  .contact-container {
    gap: 40px;
  }

  form {
    max-width: 500px;
  }
}


/* MOVIL */
@media screen and (max-width: 768px) {

  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 16px 20px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero-content {
    margin-top: 60px;
  }

  .hero-content h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .hero-buttons a {
    width: 90%;
    max-width: 350px;
    margin: auto;
    text-align: center;
  }

  .section {
    padding: 60px 25px;
  }

  .about-container {
    padding: 45px 25px;
    border-radius: 25px;
  }

  .cards {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .card {
    padding: 28px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-text h3 {
    font-size: 36px;
  }

  .contact-text p {
    font-size: 15px;
    margin: auto;
  }

  form {
    padding: 35px 25px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-block p {
    font-size: 13px;
  }
}


/* MOVIL PEQUEÑO (iPhone SE / Android Mini) */
@media screen and (max-width: 480px) {

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .section h2 {
    font-size: 28px;
  }

  .btn-contacto {
    padding: 12px 20px;
    font-size: 14px;
  }

  .contact-text h3 {
    font-size: 30px;
  }

  form input,
  form textarea {
    padding: 14px;
    font-size: 14px;
  }

  form button {
    font-size: 15px;
  }
}

.scroll-top{
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.contact-text{
    position: relative;
    z-index: 20;
}