/* ================================
   ESTILOS PARA PÁGINA CONTACTO
   ================================ */

/* ===== VARIABLES GLOBALES ===== */
:root {
    --metal-dark: #0f172a;         /* Azul oscuro metálico */
    --metal-blue: #1b263b;         /* Azul acero */
    --metal-accent: #0d6efd;       /* Azul principal */
    --metal-light: #2a3f5f;        /* Azul grisáceo claro */
    --metal-bright: #1e40af;       /* Azul brillante */
    --highlight: #ecf0f1;          /* Amarillo para resaltar */
    --light: #ecf0f1;              /* Blanco humo */
    --shadow: 0 6px 16px rgba(0,0,0,0.25); /* Sombras suaves */
    --transition: all 0.3s ease;   /* Transiciones suaves */
}

/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--metal-dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== NAVBAR IDÉNTICO ===== */
.navbar {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-accent), var(--metal-dark)) !important;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--light);
}

/* Links de navegación */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover, 
.nav-link.active {
    color: var(--highlight);
    opacity: 1;
}

.nav-link.active {
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 10px #ecf0f1(250, 204, 21, 0.5);
}

/* Subrayado animado en link activo */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    border-radius: 2px;
    animation: glowUnderline 2s ease-in-out infinite;
}

@keyframes glowUnderline {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 0 0 5px var(--highlight);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 15px var(--highlight);
    }
}

/* Botón menú móvil */
#mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    padding: 8px 12px;
    transition: var(--transition);
    border-radius: 4px;
}

#mobile-menu-button:hover {
    background: rgba(255,255,255,0.1);
    color: var(--highlight);
}

/* Menú móvil */
#mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--metal-blue);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
}

#mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#mobile-menu .mobile-link {
    color: var(--light);
    text-decoration: none;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

#mobile-menu .mobile-link:hover, 
#mobile-menu .mobile-link.active {
    background: rgba(255,255,255,0.05);
    color: var(--highlight);
    padding-left: 25px;
}

#mobile-menu .mobile-link.active {
    font-weight: 700;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.15), transparent);
    border-left: 4px solid var(--highlight);
    text-shadow: 0 0 10px #ecf0f1(250, 204, 21, 0.5);
    transform: translateX(5px);
}

/* ===== SECCIÓN CONTACTO ===== */
.contact-section {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    min-height: 100vh;
    padding: 80px 0;
}

.animated-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #0d6efd, #1e40af, #1b263b, #0ea5e9, #0d6efd);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 60px;
    color: var(--light);
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Tarjeta de Información */
.info-card {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13, 110, 253, 0.2);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.info-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--highlight);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.info-item:hover {
    background: rgba(13, 110, 253, 0.15);
    transform: translateX(10px);
    border-color: rgba(13, 110, 253, 0.3);
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd, #1e40af);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
}

.info-content h3 {
    color: var(--highlight);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.info-content p {
    color: var(--light);
    margin-bottom: 4px;
    font-size: 1rem;
}

/* Formulario de Contacto */
.form-card {
    background: linear-gradient(135deg, var(--metal-blue), var(--metal-light));
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(13, 110, 253, 0.2);
    backdrop-filter: blur(10px);
}

.form-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--highlight);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--light);
    font-weight: 500;
}

/* Inputs y textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(13, 110, 253, 0.3);
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

/* Select (Asunto) en azul metálico */
.form-group select {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--metal-accent);
    border-radius: 12px;
    background: var(--metal-blue); /* Azul metálico */
    color: #ffffff;               /* Texto blanco */
    font-size: 1rem;
    transition: var(--transition);
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--metal-blue);
    color: #ffffff;
}

.form-group select option:hover {
    background: var(--metal-accent);
    color: #fff;
}

/* Focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.15);
    box-shadow: 0 0 25px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--highlight);
    font-size: 1.2rem;
    transition: var(--transition);
}

.form-group:focus-within .input-icon {
    color: #0d6efd;
    transform: translateY(-50%) scale(1.1);
}

/* Botón de Enviar */
.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(45deg, #0d6efd, #1e40af);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #1e40af, #0d6efd);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.5);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* ===== SECCIÓN MAPA ===== */
.map-section {
    background: linear-gradient(135deg, var(--metal-dark), var(--metal-blue));
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--highlight);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.map-container {
    position: relative;
}

.map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid rgba(13, 110, 253, 0.3);
    transition: var(--transition);
}

.map-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.4);
    transform: translateY(-5px);
}

.map-card iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(13, 110, 253, 0.9);
    padding: 20px;
    border-radius: 12px;
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-overlay h3 {
    margin-bottom: 10px;
    color: var(--highlight);
}

.map-overlay p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.bg-gray-900.text-white.py-6 {
    background: linear-gradient(90deg, var(--metal-dark), var(--metal-blue), var(--metal-dark)) !important;
    position: relative;
}

.bg-gray-900.text-white.py-6::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.mb-4.space-x-6 a {
    transition: var(--transition);
    display: inline-block;
    color: rgba(255, 255, 255, 0.7) !important;
}

.mb-4.space-x-6 a:hover {
    color: #0d6efd !important;
    transform: translateY(-4px);
}

/* ===== ANIMACIONES ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none !important; }
    #mobile-menu-button { display: block !important; }
    
    .animated-title { font-size: 2.5rem; }
    .contact-content { grid-template-columns: 1fr; gap: 30px; }
    .info-card, .form-card { padding: 30px 20px; }
    .info-item { padding: 15px; }
    .map-overlay { position: relative; top: 0; left: 0; margin: 20px; }
    .nav-brand span { font-size: 1.1rem; }
    .logo-img { height: 38px; }
}

@media (max-width: 480px) {
    .animated-title { font-size: 2rem; }
    .contact-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .info-item { flex-direction: column; text-align: center; gap: 15px; }
    .info-icon { align-self: center; }
    #mobile-menu .mobile-link { padding: 16px 20px; font-size: 1rem; }
}
