/* ========================================
   CONTACT PAGE STYLES - IMPROVED & RESPONSIVE
   ======================================== */

/* Header transparente para contact - Mayor especificidad */
body .site-header,
.site-header.scrolled,
header.site-header {
    background-color: transparent !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section - More Compact */
.contact-hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 1.5rem;
}

.contact-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Contact Section - Improved Layout */
.contact-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    min-height: calc(100vh - 40vh);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: start;
}

/* Contact Info - Improved & Compact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: sticky;
    top: 2rem;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.contact-info-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.info-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Form Container - Improved */
.contact-form-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

/* Form Styles - Floating Labels */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Static Label Styles - Always on top */
.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
    position: relative;
    z-index: 1;
}

/* Input and Textarea Styles */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    color: #374151;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Focus States */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Focused label state */
.form-group.focused label {
    color: #3b82f6;
}

/* Filled state styles */
.form-group.filled input,
.form-group.filled textarea,
.form-group.filled select {
    border-color: #10b981;
    background-color: rgba(236, 253, 245, 0.9);
}

.form-group.filled label {
    color: #10b981;
}

/* Error States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
    background-color: rgba(254, 242, 242, 0.9);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: #ef4444 !important;
}

.form-group.error .input-border {
    background: #ef4444;
    width: 100%;
}

/* Filled state styles */
.form-group.filled input,
.form-group.filled textarea,
.form-group.filled select {
    border-color: #10b981;
    background-color: rgba(236, 253, 245, 0.9);
}

.form-group.filled label {
    color: #10b981 !important;
}

/* Error States */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ef4444;
    background-color: rgba(254, 242, 242, 0.9);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
    color: #ef4444 !important;
}

.form-group.error .input-border {
    background: #ef4444;
    width: calc(100% - 4px);
}

/* Input Border Animation */
.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: width 0.3s ease;
    z-index: 2;
    border-radius: 0 0 10px 10px;
}

.form-group.focused .input-border {
    width: calc(100% - 4px);
}

.form-group.filled .input-border {
    width: calc(100% - 4px);
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

/* Submit Button */
.form-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn-submit::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;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================== */
/* === BLOQUE DE CSS CONFLICTIVO ELIMINADO DE ESTA SECCIÓN === */
/* ============================================================== */


/* Message Group - Fixed Label */
.form-group.message-group label {
    position: static;
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
    transform: none;
    background: transparent;
    padding: 0;
    pointer-events: auto;
}

.form-group.message-group.focused label {
    color: #3b82f6;
    position: static;
    transform: none;
    font-size: 0.95rem;
    background: transparent;
}

.form-group.message-group.filled label {
    color: #374151;
    position: static;
    transform: none;
    font-size: 0.95rem;
    background: transparent;
}

.form-group.message-group.error label {
    color: #ef4444 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
    }

    .contact-info {
        order: 2;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .contact-info-card {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }

    .contact-form-container {
        order: 1;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-section {
        height: 35vh;
        min-height: 300px;
    }

    .contact-section {
        padding: 2rem 0 3rem;
    }

    .contact-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info-card {
        min-width: 100%;
        padding: 1.25rem;
    }

    .info-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-content {
        padding: 0 1rem;
    }

    .contact-form-container {
        padding: 1.25rem;
    }

    .form-header {
        margin-bottom: 2rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .contact-info-card {
        padding: 1rem;
        text-align: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.875rem;
        font-size: 0.95rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group.focused label,
    .form-group.filled label {
        font-size: 0.8rem;
    }
}

/* ========================================
   MAP SECTION STYLES
   ======================================== */

.map-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.map-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.map-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2;
}

.map-part {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: translateY(0) scale(1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0;
    padding: 0;
    margin: 0;
}

/* Efecto sutil de brillo en hover */
.map-part::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    pointer-events: none;
    border-radius: 0;
}

.map-part:hover::before {
    transform: translateX(100%);
}

/* Efecto stagger para las partes del mapa */
.map-part:nth-child(1) {
    transition-delay: 0.1s;
}

.map-part:nth-child(2) {
    transition-delay: 0.2s;
}

.map-part:nth-child(3) {
    transition-delay: 0.3s;
}

.map-part:nth-child(4) {
    transition-delay: 0.4s;
}

/* Efecto de pulso sutil para indicar interactividad */
@keyframes subtle-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.008);
    }
}

@keyframes gentle-float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }
}

.map-part.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: subtle-pulse 6s ease-in-out infinite, gentle-float 8s ease-in-out infinite;
}

.map-part.animate-in:hover {
    animation: none;
    /* Detener el pulso en hover */
}

.map-part:hover {
    transform: scale(1.08) translateY(-8px);
    z-index: 10;
}

.map-part img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
    transform: scale(1);
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.map-part:hover img {
    filter: drop-shadow(0 15px 40px rgba(245, 158, 11, 0.5)) drop-shadow(0 8px 25px rgba(0, 0, 0, 0.25)) brightness(1.08) saturate(1.1);
    transform: scale(1.02);
}

/* Responsive design para el mapa */
@media (max-width: 768px) {
    .map-section {
        padding: 3rem 0;
    }

    .map-header {
        margin-bottom: 2rem;
    }

    .map-container {
        padding: 0 1rem;
    }

    .map-part {
        padding: 0;
        margin: 0;
    }

    .map-part:hover {
        transform: scale(1.06) translateY(-6px);
    }

    .map-part img {
        border-radius: 0;
        filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.1));
        margin: 0;
        padding: 0;
    }

    .map-part:hover img {
        filter: drop-shadow(0 12px 30px rgba(245, 158, 11, 0.4)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.18)) brightness(1.06) saturate(1.08);
        transform: scale(1.015);
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: 2rem 0;
    }

    .map-header {
        margin-bottom: 1.5rem;
    }

    .map-container {
        padding: 0 0.5rem;
    }

    .map-part {
        padding: 0;
        margin: 0;
    }

    .map-part img {
        border-radius: 0;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
        margin: 0;
        padding: 0;
    }

    .map-part:hover {
        transform: scale(1.04) translateY(-4px);
    }

    .map-part:hover img {
        filter: drop-shadow(0 8px 20px rgba(245, 158, 11, 0.3)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) brightness(1.04) saturate(1.05);
        transform: scale(1.01);
    }

    /* Animaciones más sutiles en móviles */
    .map-part.animate-in {
        animation: subtle-pulse 8s ease-in-out infinite;
    }
}

/* ========================================
   SUCCESS NOTIFICATION STYLES
   ======================================== */

.success-notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-notification.show {
    opacity: 1;
    visibility: visible;
}

.notification-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.success-notification.show .notification-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #10b981;
    animation: pulse-success 2s ease-in-out infinite;
}

.success-message h3 {
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.success-message p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.close-notification {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-notification:hover {
    background: #f3f4f6;
    color: #374151;
    transform: rotate(90deg);
}

@keyframes pulse-success {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive para notificación */
@media (max-width: 768px) {
    .notification-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .success-icon i {
        font-size: 3rem;
    }

    .success-message h3 {
        font-size: 1.5rem;
    }

    .success-message p {
        font-size: 1rem;
    }
}