/* Estilos responsive para la página de mantenimiento */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    .maintenance-container {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .company-logo {
        max-width: 280px;
    }
    
    .maintenance-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-button {
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .construction-icon svg {
        width: 70px;
        height: 70px;
    }
    
    /* Estilos responsive para el mapa mejorado en tablets */
    .map-section {
        margin: 2rem 0;
        padding: 2rem 0;
    }
    
    .map-header {
        margin-bottom: 2rem;
    }
    
    .map-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-bottom: 0.75rem;
    }
    
    .map-title {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }
    
    .map-subtitle {
        font-size: 1rem;
    }
    
    .map-container {
        gap: 1.5rem;
        max-width: 580px;
    }
    
    .address-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .address-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .address-icon {
        width: 42px;
        height: 42px;
    }
    
    .address-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .address-title {
        font-size: 1.15rem;
    }
    
    .address-content {
        gap: 0.6rem;
    }
    
    .address-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }
    
    .address-label {
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .address-value {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .map-action-content {
        margin-bottom: 1.25rem;
    }
    
    .map-action-title {
        font-size: 1.1rem;
    }
    
    .map-action-description {
        font-size: 0.95rem;
    }
    
    .map-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        max-width: 280px;
        border-radius: 14px;
    }
    
    .map-button-icon {
        width: 24px;
        height: 24px;
    }
    
    .map-button-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .interactive-map {
        height: 350px;
        border-radius: 14px;
    }
    
    .map-controls {
        top: 0.75rem;
        right: 0.75rem;
        gap: 0.375rem;
    }
    
    .map-control-btn {
        width: 34px;
        height: 34px;
        border-radius: 7px;
    }
    
    .map-control-btn svg {
        width: 15px;
        height: 15px;
    }
    
    .marker-pin {
        width: 36px;
        height: 36px;
    }
    
    .marker-pin svg {
        width: 18px;
        height: 18px;
    }
    
    .marker-tooltip {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
        max-width: 250px;
    }
    
    .address-info {
        padding: 1.25rem;
        border-radius: 10px;
    }
    
    .address-item {
        gap: 0.875rem;
    }
    
    .address-item svg {
        width: 19px;
        height: 19px;
    }
    
    .address-text {
        font-size: 0.95rem;
    }
}

/* Móviles */
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    
    .maintenance-container {
        max-width: 100%;
        padding: 1rem;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        margin: 0.5rem;
    }
    
    .company-logo {
        max-width: 220px;
    }
    
    .maintenance-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .maintenance-message p {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-info {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        gap: 0.75rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Asegurar gradientes oscuros en móviles */
    .email-button {
        background: linear-gradient(135deg, #3b82f6, #1e40af, #1d4ed8) !important;
        color: white !important;
    }
    
    .phone-button {
        background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
        color: white !important;
    }
    
    .map-button {
        background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
        color: white !important;
    }
    
    .contact-button svg {
        width: 20px;
        height: 20px;
    }
    
    .construction-icon {
        margin-bottom: 1.5rem;
    }
    
    .construction-icon svg {
        width: 60px;
        height: 60px;
    }
    
    /* Estilos responsive para el mapa mejorado en móviles */
    .map-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }
    
    .map-section::before {
        width: 40px;
    }
    
    .map-header {
        margin-bottom: 1.5rem;
    }
    
    .map-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 0.5rem;
    }
    
    .map-title {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
        letter-spacing: -0.3px;
    }
    
    .map-subtitle {
        font-size: 0.95rem;
    }
    
    .map-container {
        gap: 1.25rem;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .address-card {
        padding: 1.25rem;
        border-radius: 14px;
    }
    
    .address-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        gap: 0.75rem;
    }
    
    .address-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .address-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .address-title {
        font-size: 1rem;
    }
    
    .address-content {
        gap: 0.5rem;
    }
    
    .address-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.6rem 0;
    }
    
    .address-line:hover {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
    
    .address-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: #60a5fa;
    }
    
    .address-value {
        font-size: 0.9rem;
        text-align: left;
        line-height: 1.4;
    }
    
    .map-divider {
        margin: 1rem 0;
    }
    
    .map-divider::before {
        width: 6px;
        height: 6px;
    }
    
    .map-action-content {
        margin-bottom: 1rem;
    }
    
    .map-action-title {
        font-size: 1rem;
    }
    
    .map-action-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .map-button {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        max-width: 100%;
        border-radius: 12px;
        gap: 0.75rem;
        letter-spacing: 0.3px;
    }
    
    .map-button-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
    }
    
    .map-button-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .map-button:hover {
        transform: translateY(-2px) scale(1.02);
    }
    
    .interactive-map {
        height: 300px;
        border-radius: 12px;
    }
    
    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.25rem;
    }
    
    .map-control-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .map-control-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .marker-pin {
        width: 32px;
        height: 32px;
    }
    
    .marker-pin svg {
        width: 16px;
        height: 16px;
    }
    
    .marker-tooltip {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        white-space: normal;
        max-width: 200px;
        text-align: center;
    }
    
    .address-info {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .address-item {
        gap: 0.75rem;
    }
    
    .address-item svg {
        width: 18px;
        height: 18px;
    }
    
    .address-text {
        font-size: 0.9rem;
    }
    
    .additional-info {
        padding-top: 1rem;
        margin-top: 1rem;
    }
    
    .additional-info p {
        font-size: 0.875rem;
    }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .maintenance-container {
        padding: 1.5rem;
    }
    
    .content-wrapper {
        padding: 2.5rem 2rem;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 1rem;
    }
    
    .contact-item {
        flex: 1;
    }
    
    .contact-button {
        max-width: none;
    }
    
    /* Mantener gradientes en tablets */
    .email-button {
        background: linear-gradient(135deg, #3b82f6, #1e40af, #1d4ed8) !important;
        color: white !important;
    }
    
    .phone-button {
        background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
        color: white !important;
    }
    
    .company-logo {
        max-width: 250px;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .maintenance-container {
        padding: 2rem;
    }
    
    .content-wrapper {
        padding: 3.5rem 3rem;
    }
    
    .maintenance-title {
        font-size: 3rem;
    }
    
    .construction-icon svg {
        width: 100px;
        height: 100px;
    }
    
    .maintenance-message p {
        font-size: 1.2rem;
    }
    
    .contact-info {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .contact-item {
        flex: 0 1 auto;
    }
    
    .contact-button {
        max-width: 350px;
        padding: 1.125rem 1.75rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .maintenance-container {
        max-width: 700px;
    }
    
    .content-wrapper {
        padding: 4rem 3.5rem;
    }
    
    .maintenance-title {
        font-size: 3.5rem;
    }
}

/* Móviles muy pequeños */
@media (max-width: 320px) {
    .content-wrapper {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }
    
    .maintenance-title {
        font-size: 1.75rem;
    }
    
    .contact-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .email-button {
        background: linear-gradient(135deg, #3b82f6, #1e40af, #1d4ed8) !important;
        color: white !important;
    }
    
    .phone-button {
        background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
        color: white !important;
    }
    
    .company-logo {
        max-width: 160px;
    }
    
    .construction-icon svg {
        width: 50px;
        height: 50px;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .construction-icon {
        margin-bottom: 1rem;
    }
    
    .construction-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .maintenance-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .maintenance-message {
        margin-bottom: 1.5rem;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .contact-button {
        min-height: 48px; /* Tamaño mínimo recomendado para touch */
        padding: 1rem 1.5rem;
    }
    
    /* Mantener los colores de fondo en dispositivos táctiles */
    .email-button {
        background: linear-gradient(135deg, #3b82f6, #1e40af, #1d4ed8) !important;
        color: white !important;
    }
    
    .phone-button {
        background: linear-gradient(135deg, #10b981, #059669, #047857) !important;
        color: white !important;
    }
    
    .contact-button:hover {
        transform: none; /* Desactivar hover en dispositivos táctiles */
    }
    
    .contact-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    }
    
    .content-wrapper {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.2);
        color: #e2e8f0;
    }
    
    .maintenance-title {
        color: #60a5fa;
    }
    
    .maintenance-message p:first-child {
        color: #cbd5e1;
    }
    
    .maintenance-message p {
        color: #94a3b8;
    }
    
    .additional-info {
        border-top-color: #475569;
    }
    
    .additional-info p {
        color: #64748b;
    }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    .construction-icon {
        animation: none;
    }
    
    .content-wrapper {
        animation: none;
    }
    
    .contact-button {
        transition: none;
    }
    
    .contact-button:hover {
        transform: none;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .content-wrapper {
        background: white;
        border: 2px solid #000;
    }
    
    .maintenance-title {
        color: #000;
    }
    
    .contact-button {
        border: 2px solid #000;
    }
}