/* ==================== CONTACT SECTION - HOTEL OSLO ==================== */

:root {
    --oslo-primary: #1a4d7d;
    --oslo-secondary: #2874b0;
    --oslo-accent: #d4af37;
    --oslo-gold: #f4d03f;
    --oslo-dark: #0a1929;
    --oslo-light: #ffffff;
    --oslo-gray: #e8eef3;
    --oslo-text: #2c3e50;
    --oslo-whatsapp: #25D366;
    --oslo-whatsapp-dark: #128C7E;
    --oslo-gradient-primary: linear-gradient(135deg, #1a4d7d 0%, #2874b0 100%);
    --oslo-gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --oslo-gradient-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --oslo-shadow-sm: 0 2px 8px rgba(26, 77, 125, 0.1);
    --oslo-shadow-md: 0 4px 16px rgba(26, 77, 125, 0.15);
    --oslo-shadow-lg: 0 8px 32px rgba(26, 77, 125, 0.2);
    --oslo-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26, 77, 125, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== SECTION HEADER ==================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--oslo-accent);
    margin-bottom: 15px;
    position: relative;
    padding: 0 30px;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 2px;
    background: var(--oslo-gradient-gold);
}

.section-subtitle::before {
    left: 0;
}

.section-subtitle::after {
    right: 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--oslo-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: var(--oslo-gradient-gold);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.title-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--oslo-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* ==================== CONTACT CONTENT ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* ==================== CONTACT INFO ==================== */
.contact-info {
    background: var(--oslo-light);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--oslo-shadow-lg);
    position: sticky;
    top: 100px;
    border: 1px solid rgba(26, 77, 125, 0.1);
}

.contact-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--oslo-dark);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--oslo-gradient-gold);
    border-radius: 2px;
}

.info-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(26, 77, 125, 0.08);
    transition: var(--oslo-transition);
}

.info-item:last-of-type {
    border-bottom: none;
}

.info-item:hover {
    transform: translateX(10px);
    padding-left: 10px;
}

.info-item i {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--oslo-gradient-primary);
    color: var(--oslo-light);
    border-radius: 15px;
    font-size: 22px;
    box-shadow: var(--oslo-shadow-sm);
    transition: var(--oslo-transition);
}

.info-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--oslo-shadow-md);
}

.info-item div {
    flex: 1;
}

.info-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--oslo-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 15px;
    color: #6c7a89;
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: #6c7a89;
    text-decoration: none;
    transition: var(--oslo-transition);
}

.info-item a:hover {
    color: var(--oslo-primary);
}

/* ==================== SOCIAL LINKS ==================== */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 35px;
    border-top: 1px solid rgba(26, 77, 125, 0.08);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(26, 77, 125, 0.05);
    border: 2px solid rgba(26, 77, 125, 0.1);
    border-radius: 50%;
    color: var(--oslo-primary);
    font-size: 20px;
    transition: var(--oslo-transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--oslo-gradient-primary);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: 0;
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    border-color: var(--oslo-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(26, 77, 125, 0.3);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links a:hover i {
    color: var(--oslo-light);
}

/* ==================== WHATSAPP DIRECT BUTTON ==================== */
.whatsapp-direct-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 35px;
    background: var(--oslo-gradient-whatsapp);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    margin-top: 30px;
    transition: var(--oslo-transition);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    position: relative;
    overflow: hidden;
}

.whatsapp-direct-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.whatsapp-direct-btn:hover::before {
    width: 300px;
    height: 300px;
}

.whatsapp-direct-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-direct-btn i {
    font-size: 26px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-15deg); }
    20%, 40% { transform: rotate(15deg); }
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    background: var(--oslo-light);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--oslo-shadow-lg);
    border: 1px solid rgba(26, 77, 125, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 25px;
    font-size: 15px;
    font-family: inherit;
    color: var(--oslo-text);
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: var(--oslo-transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--oslo-light);
    border-color: var(--oslo-primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 125, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-group select option {
    padding: 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

/* Input date styling */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(50%);
}

.form-group input[type="date"]:hover::-webkit-calendar-picker-indicator {
    filter: invert(30%);
}

/* ==================== SUBMIT BUTTON ==================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--oslo-transition);
    overflow: hidden;
    outline: none;
}

.btn-primary {
    background: var(--oslo-gradient-whatsapp);
    color: var(--oslo-light);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

.full-width {
    width: 100%;
}

/* Loading state for button */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== FIELD ERROR ==================== */
.field-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: shake 0.4s ease-in-out;
}

.field-error::before {
    content: '⚠';
    font-size: 16px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e74c3c;
    animation: shake 0.4s ease-in-out;
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: var(--oslo-gradient-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: var(--oslo-transition);
    opacity: 0;
    transform: scale(0);
}

.whatsapp-floating-btn.show {
    opacity: 1;
    transform: scale(1);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1); }
}

.whatsapp-floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.7);
}

.whatsapp-floating-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: var(--oslo-gradient-whatsapp);
    opacity: 0.4;
    animation: pulse-whatsapp 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip para el botón flotante */
.whatsapp-floating-btn::after {
    content: '¿Necesitas ayuda?';
    position: absolute;
    right: 75px;
    background: var(--oslo-dark);
    color: var(--oslo-light);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--oslo-transition);
    font-weight: 600;
}

.whatsapp-floating-btn:hover::after {
    opacity: 1;
    right: 80px;
}

/* ==================== CONFIRMATION MESSAGE ==================== */
.whatsapp-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-confirmation.fade-out {
    animation: slideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.confirmation-content i {
    font-size: 80px;
    color: var(--oslo-whatsapp);
    margin-bottom: 25px;
    animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.confirmation-content h3 {
    color: var(--oslo-dark);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.confirmation-content p {
    color: #6c7a89;
    font-size: 16px;
    line-height: 1.6;
}

/* Overlay para el mensaje de confirmación */
.whatsapp-confirmation::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(5px);
    z-index: -1;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .contact-info,
    .contact-form {
        padding: 35px 25px;
    }

    .contact-info h3 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .whatsapp-floating-btn {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-floating-btn::after {
        display: none;
    }

    .whatsapp-confirmation {
        padding: 35px 25px;
    }

    .confirmation-content i {
        font-size: 60px;
    }

    .confirmation-content h3 {
        font-size: 22px;
    }

    .whatsapp-direct-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px 20px;
        font-size: 14px;
    }

    .btn {
        padding: 16px 30px;
        font-size: 14px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--oslo-accent);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        border: 2px solid currentColor;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .whatsapp-floating-btn,
    .whatsapp-direct-btn,
    .social-links {
        display: none;
    }
}