/* AGC v4: correcciones específicas posteriores a la maqueta v3.
   No modifica precios, datos comerciales ni tamaño real de las fotografías. */

/* 1. Footer: impedir que logos SVG/imágenes se estiren o llenen la columna. */
body.agc-theme footer .agc-logo-img,
body.agc-theme footer .agc-footer-logo,
body.agc-theme footer .agc-footer__logo,
body.agc-theme .agc-footer .agc-logo-img,
body.agc-theme .agc-footer .agc-footer-brand img,
body.agc-theme .agc-footer .agc-brand img,
body.agc-theme footer .agc-footerbrand img,
body.agc-theme .agc-footer .agc-footer-logo,
body.agc-theme .agc-footer .agc-footer__logo,
body.agc-theme .agc-footer img[src*="logo-agc"],
body.agc-theme .agc-footer img[src*="LOGO_AGC"] {
  display:block !important;
  width:min(100%,230px) !important;
  max-width:230px !important;
  min-width:0 !important;
  height:auto !important;
  max-height:125px !important;
  object-fit:contain !important;
  object-position:left center !important;
  aspect-ratio:auto !important;
  flex:none !important;
  transform:none !important;
  margin:0 0 16px !important;
}
body.agc-theme .agc-footer .agc-footer-brand,
body.agc-theme .agc-footer .agc-footer-logo-wrap,
body.agc-theme .agc-footer .agc-logo {
  width:auto !important;
  max-width:min(100%,270px) !important;
  min-width:0 !important;
  height:auto !important;
  flex:none !important;
}
/* If the footer only has an unclassed logo img, cap just prominent non-icon media. */
body.agc-theme .agc-footer img:not([class]):not([width]),
body.agc-theme footer img[src$="logo-agc-blanco.svg"],
body.agc-theme footer img[src$="logo-agc.svg"] {
  display:block;
  width:auto !important;
  max-width:min(100%,230px) !important;
  height:auto !important;
  max-height:125px !important;
  object-fit:contain !important;
  aspect-ratio:auto !important;
}
@media(max-width:640px){
  body.agc-theme .agc-footer img[src*="logo"],
  body.agc-theme .agc-footer .agc-logo-img,
  body.agc-theme .agc-footer .agc-footer-logo {max-width:190px !important;max-height:110px !important;margin-inline:auto !important;object-position:center !important;}
}

/* 2. Acción secundaria del hero: V3 puso color blanco en TODOS los .agc-button,
      incluyendo botones blancos/translúcidos, haciéndolos ilegibles. */
body.agc-theme .agc-hero .agc-hero-buttons .agc-button-outline,
body.agc-theme .agc-hero a.agc-button-outline,
body.agc-theme a.agc-button.agc-button-outline {
  background:#fff !important;
  color:#1716b8 !important;
  border:2px solid #1716b8 !important;
  text-shadow:none !important;
  opacity:1 !important;
  box-shadow:0 5px 15px rgba(15,36,78,.07) !important;
  font-weight:850 !important;
  font-size:13px !important;
  letter-spacing:.02em !important;
  min-height:51px !important;
}
body.agc-theme .agc-hero .agc-hero-buttons .agc-button-outline:hover,
body.agc-theme .agc-hero a.agc-button-outline:hover,
body.agc-theme a.agc-button.agc-button-outline:hover {
  background:#1716b8 !important;
  color:#fff !important;
  border-color:#1716b8 !important;
}

/* 3. Página Contacto: estilos explícitos incluso cuando se abre con OceanWP.
      Se conserva Contact Form 7 y sus validaciones nativas. */
body.page-id-62 .agc-contact-v4,
body.page-id-62 .agc-contact-v4 * {box-sizing:border-box;}
body.page-id-62 .agc-contact-v4 {
  font-family:Manrope,Arial,sans-serif !important;
  color:#172c45;
  max-width:1200px;
  width:100%;
  margin:25px auto 65px;
  padding:0 12px;
}
body.page-id-62 .agc-contact-v4__hero {
  padding:clamp(27px,5vw,55px);
  margin:0 0 24px;
  border-radius:20px;
  background:linear-gradient(118deg,#eaf1ff 0%,#f5f9ff 60%,#fff1e3 100%) !important;
  border:1px solid #dbe4f2;
  box-shadow:none;
}
body.page-id-62 .agc-contact-v4__eyebrow {color:#1716b8;font-size:12px;font-weight:850;letter-spacing:.13em;}
body.page-id-62 .agc-contact-v4__hero h1 {font-family:Georgia,serif !important;font-size:clamp(31px,4vw,59px);line-height:1.13;color:#142a46;margin:14px 0 !important;max-width:790px;}
body.page-id-62 .agc-contact-v4__hero p {font-size:16px;line-height:1.75;max-width:750px;color:#52657c;}
body.page-id-62 .agc-contact-v4__hero a,
body.page-id-62 .agc-contact-v4__aside a {display:inline-flex;justify-content:center;align-items:center;background:#1716b8 !important;color:#fff !important;border-radius:10px;padding:12px 20px;font-weight:800;text-decoration:none !important;min-height:46px;}
body.page-id-62 .agc-contact-v4__hero a:hover,
body.page-id-62 .agc-contact-v4__aside a:hover {background:#f37718 !important;}
body.page-id-62 .agc-contact-v4__layout {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,.9fr);gap:23px;align-items:start;}
body.page-id-62 .agc-contact-v4__form,
body.page-id-62 .agc-contact-v4__note {background:#fff;border:1px solid #dce5f1;border-radius:17px;padding:clamp(20px,3vw,31px);box-shadow:0 9px 29px rgba(27,42,73,.05);min-width:0;}
body.page-id-62 .agc-contact-v4__form h2 {font:400 clamp(24px,2.8vw,35px)/1.18 Georgia,serif;margin:0 0 12px;color:#142a46;}
body.page-id-62 .agc-contact-v4__form>p,
body.page-id-62 .agc-contact-v4__note p {font-size:14px;color:#596d83;line-height:1.7;}
body.page-id-62 .agc-contact-v4__aside {display:grid;gap:15px;}
body.page-id-62 .agc-contact-v4__note {margin:0;}
body.page-id-62 .agc-contact-v4__note strong {display:block;margin:8px 0;color:#172c45;font-size:16px;}
body.page-id-62 .agc-contact-v4__note a {display:flex;margin-top:10px;}
body.page-id-62 .agc-contact-v4 :is(input:not([type=submit]),textarea) {width:100%;max-width:100%;border:1px solid #cad5e4;border-radius:9px;background:#fff;padding:12px;font:400 16px/1.5 Manrope,Arial,sans-serif;color:#233a53;}
body.page-id-62 .agc-contact-v4 textarea {min-height:145px;}
body.page-id-62 .agc-contact-v4 .wpcf7 input[type=submit] {display:inline-flex;align-items:center;justify-content:center;background:#f37718 !important;color:#fff !important;border-radius:10px;border:0;min-height:49px;font-weight:850;padding:10px 24px;cursor:pointer;}
body.page-id-62 .agc-contact-v4 .wpcf7 label {display:block;font-size:14px;font-weight:750;color:#273a59;}
body.page-id-62 .agc-contact-v4 .wpcf7-form-control-wrap {display:block;margin-top:7px;}
body.page-id-62 .agc-contact-v4 .wpcf7 form>p {margin:0 0 12px;}
@media(max-width:850px){
  body.page-id-62 .agc-contact-v4__layout {grid-template-columns:1fr;}
  body.page-id-62 .agc-contact-v4__aside {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
  body.page-id-62 .agc-contact-v4 {margin-top:10px;padding:0 3px;}
  body.page-id-62 .agc-contact-v4__hero {padding:24px 17px;border-radius:14px;margin-bottom:14px;}
  body.page-id-62 .agc-contact-v4__form,
  body.page-id-62 .agc-contact-v4__note {padding:19px 16px;border-radius:13px;}
  body.page-id-62 .agc-contact-v4__layout {gap:13px;}
  body.page-id-62 .agc-contact-v4__aside {grid-template-columns:1fr;}
}
