:root {
    --primary-dark: #22224c;
    --primary-orange: #e94e1a;
    --primary-teal: #2dbaa9;
    --white: #ffffff;
    --gray-light: #f5f7fb;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e1e2a;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* TOP BAR */
.top-bar {
    background: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}
.top-bar i {
    color: var(--primary-orange);
    margin-right: 4px;
}

/* NAVBAR */
.navbar-main {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.nav-link-custom {
    font-weight: 600;
    color: #2c2c3a;
    position: relative;
    transition: var(--transition);
}
.nav-link-custom:hover {
    color: var(--primary-orange);
}
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: 0.3s;
}
.nav-link-custom:hover::after {
    width: 70%;
}
.btn-orange {
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(233,78,26,0.2);
}
.btn-orange:hover {
    background: #c73d0c;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(233,78,26,0.3);
}
.btn-outline-teal {
    background: transparent;
    border: 2px solid var(--primary-teal);
    border-radius: 30px;
    padding: 9px 28px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}
.btn-outline-teal:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: url('../img/.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45,186,169,0.1) 0%, rgba(34,34,76,0.05) 70%);
    border-radius: 50%;
    z-index: 0;
    animation: floatBlob 12s infinite alternate;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(233,78,26,0.08) 0%, rgba(34,34,76,0.02) 80%);
    border-radius: 50%;
    z-index: 0;
    animation: floatBlob2 15s infinite alternate;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    100% { transform: translate(50px, -40px) scale(1.2); opacity: 1; }
}
@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    100% { transform: translate(-30px, 50px) scale(1.3); opacity: 0.8; }
}
.badge-teal {
    background: rgba(45,186,169,0.15);
    color: var(--primary-teal);
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.hero h1 {
    animation: fadeSlideUp 0.8s ease-out;
}
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(30px);}
    100% { opacity: 1; transform: translateY(0);}
}
.hero-image-animated {
    transition: transform 0.4s ease;
    animation: gentleFloat 3s infinite alternate;
}
@keyframes gentleFloat {
    0% { transform: translateY(0px);}
    100% { transform: translateY(-12px);}
}
.img-hover-zoom {
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.img-hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.2);
}

/* ============================================
   CARRUSEL HERO — SIN RECORTES, FRANJAS BLANCAS
   ============================================ */
#heroImageCarousel,
#heroImageCarousel .carousel-inner {
    height: 400px;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

#heroImageCarousel .carousel-item {
    height: 100%;
    width: 100%;
    background: #ffffff;
    display: flex !important;
    align-items: flex-start;   /* imagen pegada arriba, sobrante abajo */
    justify-content: center;
    overflow: hidden;
}

.hero-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: top center;
    background: transparent;
}

/* ============================================
   CARRUSEL MODAL COMUNICADOS
   ============================================ */
#carouselComunicado,
#carouselComunicado .carousel-inner {
    height: 500px;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

#carouselComunicado .carousel-item {
    height: 100%;
    width: 100%;
    background: #ffffff;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

#carouselComunicado .carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: top center;
}

@media (max-width: 768px) {
    /* HERO en móvil: alto automático según la imagen */
    #heroImageCarousel,
    #heroImageCarousel .carousel-inner,
    #heroImageCarousel .carousel-item {
        height: auto !important;
        min-height: 0 !important;
        background: #ffffff;
    }

    #heroImageCarousel .carousel-item {
        display: block !important;
    }

    .hero-img {
        width: 100% !important;
        height: auto !important;
        max-height: 320px !important;
        object-fit: contain !important;
        object-position: top center !important;
    }

    /* COMUNICADO en móvil: NO tocar (está perfecto) */
    #carouselComunicado,
    #carouselComunicado .carousel-inner {
        height: 320px;
    }
}

/* FLIP CARDS */
.flip-card {
    perspective: 1000px;
    height: 170px;
}
.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    backface-visibility: hidden;
    text-align: center;
}
.flip-front {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-teal));
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.flip-front i {
    font-size: 32px;
    margin-bottom: 10px;
    transition: 0.2s;
}
.flip-back {
    background: var(--primary-orange);
    color: white;
    transform: rotateY(180deg);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* HERO BOX */
.hero-box {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hero-image-animated {
    margin-top: 450px;
    margin-left: -10px;
}

.icon-card {
    background: #f8faff;
    border-radius: 12px;
    text-align: center;
    padding: 15px 10px;
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}
.icon-card i {
    font-size: 22px;
    color: #22224c;
    margin-bottom: 5px;
}
.icon-card p {
    font-size: 13px;
    margin: 0;
    font-weight: 600;
}
.icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.hover-panel {
    position: absolute;
    right: -200px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: all 0.6s ease;
}
.hero-box:hover .hover-panel {
    right: -100px;
    opacity: 1;
}
.panel-item {
    width: 180px;
    padding: 12px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: slideIn 0.6s ease forwards;
}
.panel-item i {
    font-size: 16px;
}
.panel-dark { background: #22224c; }
.panel-orange { background: #e94e1a; }
.panel-teal { background: #2dbaa9; }

@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* FOOTER */
.footer-main {
    background: linear-gradient(135deg, #22224c, #2dbaa9);
    color: white;
    padding: 50px 0 20px;
}
.footer-logo-img {
    width: 140px;
    margin-bottom: 5px;
}
.footer-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.footer-contact p {
    font-size: 13px;
    margin: 5px 0;
}
.footer-heading {
    font-weight: 700;
    margin-bottom: 15px;
}
footer ul {
    list-style: none;
    padding: 0;
}
footer ul li {
    margin-bottom: 8px;
}
footer ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: 0.3s;
}
footer ul li a:hover {
    color: #e94e1a;
    transform: translateX(5px);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: 0.3s;
}
.footer-social a:hover {
    background: #e94e1a;
    transform: translateY(-3px);
}

.footer-form input {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px;
    border: none;
    border-radius: 8px;
}
.footer-form button {
    width: 100%;
    background: #e94e1a;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}
.footer-form button:hover {
    background: #c73d0c;
}

.iso-badge {
    margin-top: 10px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 12px;
}
.footer-bottom strong {
    color: #ffffff;
}
.footer-bottom .divider {
    margin: 0 8px;
    opacity: 0.5;
}
.dev-link {
    color: #2dbaa9;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.dev-link:hover {
    color: #e94e1a;
    text-decoration: underline;
}

/* WHATSAPP */
.wa-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}
.wa-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.wa-button {
    width: 70px;
    height: 70px;
    background: #fcfcfc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    transition: 0.3s;
}
.wa-button:hover {
    transform: scale(1.1);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-message {
    position: absolute;
    bottom: 10px;
    right: 75px;
    background: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-size: 13px;
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s;
    white-space: nowrap;
}
.wa-options {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}
.wa-options a {
    text-decoration: none;
    color: #25D366;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wa-options a:hover {
    color: #128C7E;
}
.wa-container:hover .wa-message,
.wa-container:hover .wa-options {
    opacity: 1;
    transform: translate(0);
}