/*
Theme Name: Hello UdeMedellín Child
Template: hello-elementor
Version: 1.1.0
Text Domain: hello-umed-child
*/

/* 1. VARIABLES */
:root {
  --color-dark-blue: #001625;
  --color-green: #11A8A6;
  --color-blue: #164260;
  --color-dark-red: #741417;
  --color-red: #CE282D;
  --color-yellow: #FDDA2D;
  --color-background: #FDF6F6;

  --font-body: 'Lato', sans-serif;
  --font-heading: 'Lora', serif;

  --transition-base: all 0.3s ease-in-out;
  --radius-base: 0.5rem;
}

/* 2. RESET Y ESTILOS BASE */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-dark-blue);
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover { color: var(--color-dark-red); }

/* 3. UTILIDADES Y COMPONENTES */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem !important; }
.mb-1 { margin-bottom: 1rem !important; }
.rounded { border-radius: var(--radius-base); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-base);
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-blue { background-color: var(--color-blue); color: #fff !important; }
.btn-blue:hover { background-color: var(--color-dark-blue); }

/* 4. OPTIMIZACION ELEMENTOR (Overrides) */

body.elementor-page .elementor-widget-heading .elementor-heading-title,
body.elementor-page h1, body.elementor-page h2, body.elementor-page h3 {
    font-family: var(--font-heading) !important;
}

body.elementor-page .elementor-widget-text-editor,
body.elementor-page .elementor-button,
body.elementor-page .elementor-icon-list-text,
body.elementor-page .elementor-widget-text-editor p {
    font-family: var(--font-body) !important;
}

/* Azul (Blue) */
.texto_azul .elementor-heading-title,
.texto_azul .elementor-text-editor,
.texto_azul p { color: var(--color-blue) !important; }

/* Amarillo */
.texto_amarillo .elementor-heading-title,
.texto_amarillo .elementor-text-editor,
.texto_amarillo p { color: var(--color-yellow) !important; }

/* Blanco / Background */
.texto_blanco .elementor-heading-title,
.texto_blanco .elementor-text-editor,
.texto_blanco p { color: var(--color-background) !important; }

/* Dark Blue */
.texto_dark_blue .elementor-heading-title,
.texto_dark_blue .elementor-text-editor,
.texto_dark_blue p { color: var(--color-dark-blue) !important; }

/* Green */
.texto_verde .elementor-heading-title,
.texto_verde .elementor-text-editor,
.texto_verde p { color: var(--color-green) !important; }

/* Rojo Oscuro (Dark Red) */
.texto_dark_rojo .elementor-heading-title,
.texto_dark_rojo .elementor-text-editor,
.texto_dark_rojo p { color: var(--color-dark-red) !important; }

/* Rojo (Red) */
.texto_rojo .elementor-heading-title,
.texto_rojo .elementor-text-editor,
.texto_rojo p { color: var(--color-red) !important; }

.bg_dark_blue { background-color: var(--color-dark-blue) !important; }
.bg_verde     { background-color: var(--color-green) !important; }
.bg_azul      { background-color: var(--color-blue) !important; }
.bg_dark_rojo { background-color: var(--color-dark-red) !important; }
.bg_rojo      { background-color: var(--color-red) !important; }
.bg_amarillo  { background-color: var(--color-yellow) !important; }
.bg_fondo     { background-color: var(--color-background) !important; }
.bg_blanco    { background-color: #ffffff !important; }

/* Reset general de herencia */
.elementor * { font-family: inherit; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* GLASS CARD PRO */

.glass-card{
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.18) 0%,
        rgba(255,255,255,0.03) 100%
    );

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.18);

    border-radius: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 20px 40px rgba(0,0,0,0.25);

    transition: 
        transform .35s ease,
        box-shadow .35s ease,
        border .35s ease;
}

.glass-card::before{
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0) 40%
    );

    opacity: .35;
    pointer-events: none;
}

.glass-card:hover{

    transform: translateY(-8px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.4),
        0 30px 60px rgba(0,0,0,0.35);

    border: 1px solid rgba(255,255,255,0.35);
}

.glass-card::after{
    content: "";
    position: absolute;
    inset: -1px;

    background: linear-gradient(
        120deg,
        rgba(255,60,60,0.25),
        rgba(0,180,255,0.2)
    );

    opacity: 0;
    transition: opacity .4s ease;

    z-index: -1;
}

.glass-card:hover::after{
    opacity: .35;
}

#noticias-bg{

    background: linear-gradient(
        145deg,
        #1a1412 0%,
        #201816 40%,
        #1a1412 100%
    );
    border-radius: 24px;
    border: 1px solid #9f9e9e;
}

#explora-bg{
    background: linear-gradient(
        180deg,
        #0b1420 0%,
        #0d1b2d 100%
    );
    border-radius: 20px;
    border: 1px solid #4a7b9e;
}

/* Estilos para el pie de pagina */
.udm-footer{
background:var(--color-dark-red);
padding: 25px 0;
color:white;
font-family:inherit;
}

.udm-footer-container{
margin:auto;
display:flex;
flex-direction: row;
justify-content: center;
align-items:center;
gap:20px;
padding:0 20px;
}

.udm-logo{
max-width:280px;
margin-bottom:12px;
}

.udm-social-title{
font-size:14px;
margin-bottom:10px;
}

.udm-social{
display:flex;
gap:18px;
}

.udm-social a{
color: var(--color-background);
font-size:18px;
transition:opacity .3s;
}

.udm-social a:hover{
opacity:.7;
}

.udm-footer-info h3{
font-size:18px;
margin-bottom:6px;
}

.udm-phone a{
color: var(--color-yellow);
text-decoration:none;
font-weight:500;
}

.udm-links a{
color:var(--color-yellow);
text-decoration:none;
}

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

.udm-footer-badges{
display:flex;
align-items:center;
gap:30px;
justify-content:flex-end;
}

.udm-footer-badges img{
height:auto;
max-width:500px;
}

/* responsive */

@media (max-width: 900px){

.udm-footer-container{
flex-direction: column;
text-align: center;
gap:30px;
}

.udm-footer-info{
max-width:500px;
}

.udm-footer-badges{
justify-content:center;
}

.udm-footer-badges img{
max-width:320px;
}

.udm-social{
justify-content:center;
}

.udm-logo{
max-width:240px;
}

}

/* HEADER HOME */
.udm-header-home {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
}

/* contenedor */
.udm-home-nav {
    background: #000;
    width: 1200px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

/* logo */
.udm-home-logo {
    display: flex;
    align-items: center;
    gap: 18px;
}

.udm-home-logo img {
    height: 42px;
    width: auto;
}

/* menu */
.udm-home-menu ul {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.udm-home-menu li {
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
}

/* CTA */
.udm-home-btn {
    background: #FDDA2D;
    color: #000;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.udm-home-btn:hover {
    opacity: .9;
}

/* HEADER INTERNAS */

.umed-header {
  width:100%;
  background:var(--color-background);
  border-top: 20px solid var(--color-blue);
  position: sticky;
  top: 0;
  z-index: 20;
}


.umed-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px 16px 0px;
  position: relative;
}

/* CAPSULA DEL LOGO (como en Figma) */

.umed-logo {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 26px;
  background: white;
  border-radius: 0 40px 40px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.umed-logo::after {
  content: "";
  position: absolute;
  right: -40px;
  top: 0;
  width: 80px;
  height: 100%;
  background: white;
  transform: skewX(-25deg);
}

.umed-logo img {
  height: 48px;
  position: relative;
  z-index: 2;
}


.umed-menu {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.umed-menu a {
  font-weight: 500;
  color: var(--color-dark-blue);
  font-size: 15px;
}

.umed-cta {
  background: var(--color-yellow);
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  color: #000;
  transition: 0.25s;
}

.umed-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.umed-hamburger {
  display: none;
  width: 46px;
  height: 46px;
  background: var(--color-yellow);
  border-radius: 8px;
  border: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.umed-hamburger span {
  width: 18px;
  height: 2px;
  background: #000;
  display: block;
}

.umed-mobile-menu {
  display: none;
}

/* MOBILE */
@media (max-width:768px) {

  .umed-header{
    background: transparent;
    border-top:none;
  }

  .umed-nav {
    display: none;
  }

  .umed-cta {
    display: none;
  }

  .umed-hamburger {
    display: flex;
  }

  .umed-mobile-menu {

    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100%;
    background: #ffffff;
    padding: 40px 30px;
    transition: 0.35s;
    z-index: 9999;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);

  }

  .umed-mobile-menu.active {
    right: 0;
  }

  .umed-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .umed-mobile-list li {
    margin-bottom: 20px;
  }

  .umed-mobile-list a {
    font-size: 20px;
    color: var(--color-dark-blue);
  }

  .umed-mobile-cta {
    display: inline-block;
    margin-top: 30px;
    background: var(--color-yellow);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
  }

  .umed-close {
    background: none;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }

}

/* botón */

.udm-internal-btn {
    background: var(--color-yellow);
    color: #000;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

/* --- RESPONSIVE HEADER DEFINITIVO --- */

.udm-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.udm-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-background) !important;
    transition: 0.3s;
}

/* En el header interno (fondo claro), las líneas cambian a color oscuro para contraste */
.udm-header-internal .udm-menu-toggle span {
    background: var(--color-dark-blue) !important;
}

.udm-mobile-cta { display: none; }

@media (max-width: 1100px) {
    .udm-menu-toggle { display: flex; }
    
    .udm-home-nav { 
        width: 95% !important; 
        position: relative; 
    }

    .udm-home-menu, .udm-internal-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 25px;
        box-sizing: border-box;
        border-radius: 0 0 14px 14px;
        z-index: 999;
    }

    .udm-internal-menu {
        background: var(--color-background);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .udm-home-menu.active, .udm-internal-menu.active { 
        display: flex; 
    }

    .udm-home-menu ul, .udm-internal-menu ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .udm-mobile-cta { 
        display: block; 
        margin-top: 15px;
    }
    
    .udm-home-cta, .udm-internal-cta { 
        display: none; 
    }

    .udm-home-logo img { height: 35px; width: auto; }
    .udm-internal-logo img { width: 150px; height: auto; }
    .udm-internal-nav { padding: 10px 20px; }
    .udm-internal-left { padding: 0; }
}