﻿/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Utilidades */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.fw-bolder {
    font-weight: 700;
}

.d-none {
    display: none;
}

/* Section */
.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Marcellus', serif;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border: none;
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
        background: rgba(51, 51, 51, 0.95);
    }

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    .card:hover::before {
        left: 100%;
    }

.card-body {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Contenedor */
.content-section {
    background: var(--gradient-dark);
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 15px;
}

/* Mapa Card */
.mapa-card {
    background: linear-gradient(135deg, rgba(224, 43, 77, 0.1), rgba(51, 51, 51, 0.9));
}

.mapa-contenido {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mapa-contenido iframe {
        width: 100%;
        height: 100%;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
        filter: grayscale(0.3) contrast(1.1);
    }

.mapa-card:hover .mapa-contenido iframe {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(224, 43, 77, 0.2);
    filter: grayscale(0) contrast(1.2);
}

/* Formulario Card */
.contacto-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(51, 51, 51, 0.9));
}

.contacto-contenido {
    padding: 2.5rem;
}

/* Formulario */
.form-label {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-family: 'Marcellus', serif;
    position: relative;
}

    .form-label::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

.form-control:focus + .form-label::after,
.form-control:not(:placeholder-shown) + .form-label::after {
    width: 50px;
}

.form-control,
.form-select {
    background-color: rgba(17, 17, 17, 0.8);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .form-control:focus,
    .form-select:focus {
        background-color: rgba(17, 17, 17, 0.9);
        border-color: var(--primary-color);
        color: var(--text-color);
        box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.1), 0 0 0 0.25rem rgba(224, 43, 77, 0.25);
        transform: translateY(-2px);
    }

    .form-control::placeholder {
        color: #6c757d;
        opacity: 0.8;
    }

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(224, 43, 77, 0.3);
    font-family: 'Marcellus', serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .btn-primary::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 ease;
    }

    .btn-primary:hover::before {
        left: 100%;
    }

    .btn-primary:hover {
        background: var(--gradient-primary-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(224, 43, 77, 0.4);
        color: white;
    }

    .btn-primary:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(224, 43, 77, 0.4);
    }

    .btn-primary:disabled {
        background: rgba(108, 117, 125, 0.6);
        box-shadow: none;
        transform: none;
        cursor: not-allowed;
        opacity: 0.6;
    }

        .btn-primary:disabled:hover {
            background: rgba(108, 117, 125, 0.6);
            transform: none;
            box-shadow: none;
        }


/* Estados de validación */
.form-control.is-valid {
    border-color: var(--success);
    background-image: none;
}

.form-control.is-invalid {
    border-color: var(--error);
    background-image: none;
}

.valid-feedback {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Adicional */
.info-adicional {
    margin-top: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
        z-index: 1;
    }

    .info-card:hover::before {
        left: 100%;
    }

    .info-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(224, 43, 77, 0.3);
        background: rgba(51, 51, 51, 0.95);
    }

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.info-card:hover .info-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(224, 43, 77, 0.4);
}

.info-title {
    font-family: 'Marcellus', serif;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.info-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

    .info-content strong {
        display: block;
        color: var(--text-color);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .info-content a {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .info-content a:hover {
            color: var(--primary-color);
        }

.info-image {
    width: 11rem;
}

.info-card:hover .info-image {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(224, 43, 77, 0.4);
}

/* Animaciones */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones con delay */
.mapa-card {
    animation: fadeInLeft 0.8s ease-out;
}

.contacto-card {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.info-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.info-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.info-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.info-card:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.info-card:nth-child(5) {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* Responsivo */
@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .card-body,
    .contacto-contenido,
    .mapa-contenido {
        padding: 2rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .mapa-contenido iframe {
        height: 300px;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .section-heading {
        margin-bottom: 3rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .card-body,
    .contacto-contenido,
    .mapa-contenido {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.65rem 0.875rem;
    }

    .mapa-contenido iframe {
        height: 250px;
    }

    .info-card {
        padding: 1.25rem;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .info-title {
        font-size: 1.1rem;
    }

    .info-content {
        font-size: 0.9rem;
    }
}
