/* VARIABLES Y ESTILOS GLOBALES */
:root {
    --primary-color: #94c4c4;
    --dark-color: #333;
    --light-color: #fff;
    --hover-color: #5fb3e0;
    --cream-bg: #fef9f0;
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
}

/* VIDEO POPUP */
.video-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    z-index: 2000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    display: none;
}

.popup-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-popup:hover {
    background: rgba(0,0,0,0.9);
}

#spotVideo {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Video Popup */
@media (max-width: 768px) {
    .video-popup {
        width: 280px;
        right: 10px;
        bottom: 10px;
    }
}

/* HEADER */
header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    height: 72px;
    position: relative;
}

.logo-combined {
    height: 72px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.logo-combined img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

header.scrolled .logo-combined {
    opacity: 0;
    transform: scale(0.8);
}

.logo-single {
    height: 72px;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.logo-single img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

header.scrolled .logo-single {
    opacity: 1;
    transform: scale(1);
}

.isotipo-ups {
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.isotipo-ups img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

header.scrolled .isotipo-ups {
    opacity: 1;
    transform: scale(1.7);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }
    
    .logo-combined, 
    .logo-single {
        height: 60px;
        width: 200px;
    }
    
    .isotipo-ups {
        height: 50px;
        width: 50px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo-container {
        height: 60px;
    }
    
    .isotipo-ups {
        height: 50px;
        width: 50px;
    }
    
    header.scrolled + nav {
        top: 78px;
    }
}

/* NAVEGACIÓN */
nav {
    background-color: var(--primary-color);
    position: fixed;
    top: 102px;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

header.scrolled + nav {
    top: 88px;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--hover-color);
}

.dropdown-menu {
    position: absolute;
    background-color: var(--light-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: none;
    list-style: none;
}

.dropdown-menu .dropdown-item {
    padding: 12px 20px;
    display: block;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f9f9f9;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
}

/* Responsive Navegación */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
        height: 80px;
        z-index: 1001;
    }
    
    .logo-container {
        height: 60px;
    }

    nav {
        top: 0;
        z-index: 1002; 
        height: 0;
        background-color: transparent;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        width: 70%; 
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        padding-top: 20px;
        padding-bottom: 40px;
        flex-direction: column;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0,0,0,0.15);
        z-index: 999; 
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 18px 25px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        display: block;
        width: 100%;
    }
    
    /* HAMBURGUESA */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed; 
        right: 20px;
        top: 95px;
        z-index: 2003; 
        
        /* Estilo visual */
        background-color: var(--primary-color);
        color: white;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        background-color: var(--hover-color);
        transform: scale(1.1);
    }
    
    /* Dropdowns en móvil */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
        background-color: rgba(255,255,255,0.15);
        padding-left: 10px;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: fadeIn 0.3s;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        float: right;
        font-size: 0.8em;
    }
}
/* BOTÓN SCROLL TO TOP */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 18px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: var(--hover-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
/* CONTENIDO PRINCIPAL */
.main-content {
    margin-top: 152px;
}

/* Responsive Contenido Principal */
@media (max-width: 768px) {
    .main-content {
        margin-top: 122px;
    }
}

/* SECCIÓN BOTONES */
.buttons-section {
    max-width: 1200px;
    margin: 40px auto 20px auto;
    padding: 0 20px;
    text-align: center;
}

.buttons-section h2 {
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

/* Decoración opcional para el título */
.buttons-section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #94c4c4;
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 200px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.career-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.button-logo {
    width: 300px;
    height: 100px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 20px;
    border: 3px solid transparent;
    padding: 10px;
}

.button-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* HOVER STATE */
.career-button:hover .button-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ACTIVE STATE */
.career-button.active .button-logo {
    border-color: #93c01f;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px rgba(147, 192, 31, 0.15);
    transform: translateY(-5px);
}

.career-button.active .button-logo img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive Sección Botones */
@media (max-width: 768px) {
    .button-container {
        gap: 30px;
    }
    
    .button-logo {
        width: 180px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .button-logo {
        width: 140px;
        height: 100px;
    }
    
    .buttons-section h2 {
        font-size: 1.5rem;
    }
}
/* SECCIONES DE CONTENIDO DINÁMICO */
.content-section {
    display: none;
    background-color: var(--cream-bg);
    padding: 60px 0;
    opacity: 0;
    transform: translateY(20px);
}

.content-section.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO SECTION */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.hero-carousel {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 400px;
    position: relative;
    min-height: 200px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* HERO SECTION */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 20px;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.hero-carousel {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 400px;
    position: relative;
    min-height: 200px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.info-grid-container {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.info-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}

.authorities {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 600px;
    min-width: 300px;
    width: 100%;
}

.authorities h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.representatives-box h3 {
    border-bottom-color: var(--hover-color);
}

.authority-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    line-height: 1.4;
}

.authority-name {
    font-weight: 600;
    color: #2c3e50;
}

.authority-position {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-carousel {
        height: 250px;
        width: 100%;
        order: 2;
        margin-top: 0;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .info-grid {
        flex-direction: column;
        gap: 20px;
    }

    .authorities {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 200px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
}

/* MISIÓN Y VISIÓN */
.mission-vision-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.mission-container {
    display: flex;
    gap: 30px;
}

.mission-content, .vision-content {
    flex: 1;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.mission-content:hover, .vision-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.mission-content h2, .vision-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.mission-content p, .vision-content p {
    line-height: 1.6;
    color: #555;
}

/* Responsive Misión y Visión */
@media (max-width: 768px) {
    .mission-container {
        flex-direction: column;
    }
}

/* CAMPO LABORAL */
.labor-field-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.labor-container {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.labor-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.labor-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.labor-container p {
    line-height: 1.6;
    color: #555;
}

/* FOOTER */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }

}
.footer-text-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- FORMULARIO DE CAPTACIÓN (VERSIÓN VERTICAL) --- */

.captacion-wrapper {
    max-width: 800px; /* Ancho controlado para que no se vea estirado */
    margin: 50px auto 0 auto; /* 50px de separación con el bloque de arriba */
    background-color: var(--cream-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 196, 196, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

/* Título del formulario centrado */
.form-header-center {
    text-align: center;
    margin-bottom: 30px;
}

.form-header-center h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-header-center p {
    color: #666;
    font-size: 1rem;
}

/* Estructura interna del form */
.contact-form-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    width: 100%;
}

/* Fila de dos columnas para PC */
.two-col {
    display: flex;
    gap: 20px;
}

.two-col .input-group {
    flex: 1;
}

/* Inputs y Labels */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    width: 100%;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-left: 4px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    outline: none;
}

/* Input Teléfono Específico */
.phone-input-container {
    position: relative;
    width: 100%;
}

.flag-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 2;
}

.phone-input-container input {
    padding-left: 45px; /* Espacio solo para la bandera */
}

/* Estados Focus y Error */
.input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(148, 196, 196, 0.15);
}

.input-group.error input {
    border-color: #e74c3c;
    background-color: #fff8f8;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    font-weight: 500;
}

.input-group.error .error-msg {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón */
.form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px; /* Botón más redondeado y moderno */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(148, 196, 196, 0.4);
}

.submit-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(95, 179, 224, 0.4);
}

/* Feedback */
.form-feedback {
    text-align: center;
    min-height: 24px;
    font-weight: 600;
    margin-top: 10px;
}
.form-feedback.success { color: #27ae60; }
.form-feedback.error { color: #e74c3c; }

/* Responsive Form */
@media (max-width: 768px) {
    .captacion-wrapper {
        padding: 25px 20px;
        margin-top: 30px;
    }
    
    .two-col {
        flex-direction: column; /* Apilar teléfono y correo en móviles */
        gap: 20px;
    }
    
    .submit-btn {
        width: 100%;
        border-radius: 8px; /* Menos redondeado en móvil para aprovechar espacio */
    }
}
/* --- ESTILOS DEL POPUP DE ÉXITO --- */
.form-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(4px); /* Efecto moderno de desenfoque */
    z-index: 3000; /* Por encima de todo */
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.form-popup-content {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-popup-overlay.show .form-popup-content {
    transform: translateY(0);
}

/* Icono de éxito */
.popup-icon-container {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
    animation: popIn 0.5s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-popup-content h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botones de cierre */
.close-popup-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-popup-x:hover {
    color: var(--dark-color);
}

.popup-action-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.popup-action-btn:hover {
    background-color: var(--hover-color);
}

.direct-contact {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.direct-contact a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.direct-contact a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}