/* ==============================
   BASE
================================= */

:root {
    --primary-color: #e6007e;
    --secondary-color: #000;
    --black-color: #2c2a2a;
    --bg-color: #555151;
    --dark-color: #ad1267;
    --bg-main: #fff;
    --bg-hero: #e6007e;
    --pink-color:#f373b9;
    --bg-navbar: rgba(255, 255, 255, 0.90);;
}

* {
    box-sizing: border-box;
}

body{
    padding-top: 170px; /* Ajusta a la altura real de tu navbar */
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-main);
}

.highlight-text{
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* sombra negra semi-transparente */
}

.highlight-text-blue{
    color: var(--black-color);
    font-weight: bold;
}

/* ==============================
   HERO / HEADER SECTION
================================= */

.st-container {
    /*background: url('/storage/background.png') center / cover no-repeat;*/
    /*width: 100vw;*/        
    height: 400px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.st-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Bajamos la iluminación por defecto */
    filter: brightness(0.6);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.st-img:hover {
    filter: brightness(1); /* iluminación normal */
    /*transform: scale(1.03);*/
}

.st-video {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* igual que con las imágenes */
    display: block;

    filter: brightness(0.6); /* iluminación baja por defecto */
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Hover: iluminar y zoom */
.st-video:hover {
    filter: brightness(1.1);
    /*transform: scale(1.03);  */
}

.img-custom01 {
    object-position: 100% 100%;
}

.img-custom02 {
    object-position: 100% 65%;
}

.img-custom03 {
    object-position: 100% 100%;
}

/* Contenedor */
.st-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Imagen o vídeo */
.st-media-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    /* Oscuro por defecto */
    filter: brightness(0.6);

    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Overlay */
.st-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;

    background: rgba(0, 0, 0, 0.35);

    transition: color 0.4s ease, background 0.4s ease;
}

/* Texto */
.st-overlay h3,
.st-overlay p {
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: color 0.4s ease, transform 0.4s ease;
    transform: scale(1); /* estado normal */
}

/* HOVER */
.st-media:hover .st-media-el {
    filter: brightness(1);       /* color normal */
    /*transform: scale(1.03);*/
}

.st-media:hover .st-overlay {
    background: rgba(0, 0, 0, 0.15); /* menos oscuro */
}

.st-media:hover .st-overlay h3,
.st-media:hover .st-overlay p {
    color: var(--primary-color); 
    transform: scale(1.1);
}

/* DESKTOP */
@media (min-width: 768px) {
    .st-container {
        height: 400px;
    }

    .st-img {
        height: 400px;
        width: 100%;
        object-fit: cover;
    }
}

/* MÓVIL */
@media (max-width: 767px) {
    .st-img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }
    .st-video {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .st-container {
        height: 300px;
    }
    /* Ajuste de reencuadre en móvil */
    .img-custom01 { object-position: center top; }
    .img-custom02 { object-position: center center; }
    .img-custom03 { object-position: center center; }
 
}



.st-section{
    background-color: var(--bg-hero);
    color: #fff;
    padding: 30px 1rem;
    width: 100%;
}

.st-section-cab{
    background-color: var(--bg-main);
    color: var(--bg-hero);
    padding: 40px 1rem;
    width: 100%;
}

.st-header-size{
    height: 600px;
}

.st-parrafos{
    color: #fff;
}

/* ==============================
   NAVBAR
================================= */

.navbar-custom {
    padding: 30px 1rem;
    background-color: var(--bg-navbar);
    backdrop-filter: blur(8px);              /* Desenfoque del fondo */
    -webkit-backdrop-filter: blur(8px);      /* Soporte Safari */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Sombra suave */
    transition: all 0.3s ease;
}

/* Marca (logo + texto) */
.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--bg-color);
    font-size: 24px;
    line-height: 1.2;
}

/* Logo */
.img-nav{
    width: 100px;
}

/* Links del menú */
#nav-list .nav-link {
    position: relative;
    color: var(--primary-color);
    margin: 0 15px;
    padding: 0;
    text-align: left;
    transition: color .3s ease;
}

/* Navbar links móviles */
.navbar-custom .navbar-nav .nav-link {
    color: var(--primary-color) !important;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus {
    color: var(--secondary-color) !important;
}

/* Icono de hamburguesa */
.navbar-custom .navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23e6007e' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* SOLO en pantallas grandes */
@media (min-width: 992px) {
    #nav-list .nav-link {
        height: 75px;
        line-height: 75px;
    }
}

@media (min-width: 992px) {
    /* Línea animada bajo el link */
    #nav-list .nav-link::after{
        content: "";
        position: absolute;
        left: 0;
        bottom: 30px;
        width: 100%;
        height: 2px;
        background-color: var(--bg-hero);
        opacity: 0;
        transform: translateY(20px);
        transition: all .3s ease;
    }
}

/*BOTON LOGIN CUSTOM*/

.btn-login-custom {
    display: inline-block;
    padding: 8px 26px;       /* alto y ancho del botón */
    background-color: var(--primary-color); /* azul principal */
    color: #fff;               /* texto blanco */
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 40px;       /* bordes redondeados para forma oval */
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* sombra sutil */
    margin-top: 6px;   /* bájalo */
    margin-bottom: 6px;
}

/* Hover */
.btn-login-custom:hover {
    background-color: var(--secondary-color); /* azul más claro */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Active / Click */
.btn-login-custom:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-login-custom,
.btn-login-custom:hover,
.btn-login-custom:focus,
.btn-login-custom:active {
    color: #fff;
    text-decoration: none !important;
}

/* Hover */
.btn-contact-custom:hover {
    background-color: var(--secondary-color); /* azul más claro */
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}




/* Hover – Links */
#nav-list .nav-link:hover {
    color: var(--secondary-color);
}

#nav-list .nav-link:hover::after{
    opacity:1;
    transform: translateY(15px);
}

/* Hover / focus – logo */
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-brand:focus,
.navbar-custom .navbar-brand:active {
    color: var(--secondary-color);
    text-decoration: none;
}

.navbar-custom .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}


/* ==============================
   SECCIONES
================================= */

.st-form{
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

#section-introm{
    background: var(--bg-hero);
    padding: 30px 0;
    text-align: center;
    margin-top: 20px;
}

.st-p-15{
    padding: 0 5%;
}

.st-p-form{
    padding: 0 10%;
}

.vertical-line { 
    border-left: 1px solid var(--dark-color);
}

/* ==============================
   FOOTER
================================= */
.cont-footer{
    height: 100px;
}
.page-footer {
    padding-top: 20px;
    background-color: var(--primary-color);
    color: #fff;
}

.footer-titel,
.link-text{
    text-align: center;
    color: #f4f4f4;
}

.page-footer .footer-copyright{
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    background-color: rgba(255,255,255,0.05);
    text-align: center;
}

/* ==============================
   UTILIDADES
================================= */

.fs-14 { font-size: 14px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-50 { font-size: 50px; }
.fs-logo { font-size: 24px; }

/*ICONOS*/

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas iguales */
  gap: 30px; /* espacio entre filas y columnas */
  justify-items: center; /* centra el contenido de cada celda */
  margin: 40px 0;
}

.service {
  text-align: center;
}

.icon {
  font-size: 50px;
  color: var(--primary-color);
  transition: color 0.3s;
}

.service:hover .icon {
  color: var(--secondary-color);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 1200px) {
  .services {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets grandes */
  }
}

@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}

.grecaptcha-badge {
    width: 70px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    left: -2px !important;
    bottom: 5px !important;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.grecaptcha-badge:hover {
    width: 256px !important;
    opacity: 1; 
}

/* GALLERY */

.gallery-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* controla proporción sin altura fija */
    
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--primary-color);
    transition: filter 0.3s ease;
}

/* Oscurecer imagen */
.gallery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* Botón */
.gallery-btn {
    position: relative;
    z-index: 2;
    border-color: var(--primary-color);
    color: white;
    background: rgba(0,0,0,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40%;
}

/* Hover */
.gallery-card:hover::before {
    background: rgba(0,0,0,0.15);
}

.gallery-card:hover .gallery-btn {
    background: var(--primary-color);
    color: #fff;
}

/* Contenedor del mapa */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Footer */

.site-footer {
    background-color: #111;
    color: #fff;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}

.footer-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-text {
    color: #ccc;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list a {
    color: #ccc;
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--primary-color);
}

.footer-social a {
    display: inline-block;
    margin-right: 1rem;
    color: #ccc;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ccc;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* END FOOTER */

/* LOCATION */

/*
.location-section {
    /*background-color: #f8f8f8;*/

/* Título */
.section-title {
    color: #e6007e;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Texto */
.location-text {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #333;
}

.location-icon {
   /* color: #e6007e;*/
    margin-right: 0.5rem;
}

/* Línea divisoria */
.location-divider {
    width: 2px;
    background-color: var(--primary-color);
    height: 100%;
}

/* Mapa */
.map-container {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-link{
    color:var(--primary-color);
}


/* END LOCATION */

.img-logo-eu{
    width: 100%;
}

.highlight{
    color: var(--primary-color);
}

/*COURSES*/

/*
.course-card {
    border: 2px solid #e6007e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}*/

.course-card {
    border: 2px solid #e6007e;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-div {
    height: 50%;
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(70%); /* baja brillo solo imagen */
}

.img-course-02{
    object-position: 100% 42%;
}

.img-course-04{
    object-position: 100% 65%;
}

/* Título centrado en la imagen */
.course-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.course-title-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* Subtítulo fuera de la imagen, encima de la descripción */
.course-subtitle-wrapper {
    padding: 10px 15px 0 15px;
}

.course-subtitle-wrapper h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    margin: 0;
}

/* Descripción */
/*
.course-content {
    padding: 10px 15px 15px 15px;
}*/

.course-content {
    padding: 10px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;   /* ← clave */
}

.course-description {
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    max-height: 3.2em;
    transition: max-height 0.3s ease;
}

/* Botón “Leer más” */
/*
.read-more-btn {
    color: #e6007e;
    padding: 0;
    font-size: 0.95rem;
    cursor: pointer;
}*/

.read-more-btn {
    margin-top: auto;   
    color: #e6007e;
    padding: 0;
    font-size: 0.95rem;
    cursor: pointer;
    align-self: flex-start;
}

/* GALLERY */

.gallery-section {
    padding: 0px;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover elegante */
.gallery-item:hover img {
    transform: scale(1.05);
}

.img-gallery-02{
    object-position: 100% 25%;
}

/*CONTACT*/

.contact-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #e6007e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.contact-box h4 {
    margin-bottom: 15px;
    color: #e6007e;
}

.contact-box ul li {
    margin-bottom: 8px;
    color: #444;
}

/* Redes sociales */
.social-links a {
    font-size: 1.6rem;
    margin-right: 15px;
    color: #e6007e;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.15);
    color: #c10068;
}