/* ===== ESTUDIO OLEASTRO CUSTOM STYLES ===== */

/* CSS Variables for Brand Colors */
:root {
    --primary-dark: #070f12;
    --accent-red: #eb1d26;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Minimum height for all sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Adjust scroll offset for larger navbar */
section[id] {
    scroll-margin-top: 90px;
}

/* Typography */
body {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    min-height: 80px;
}

.navbar-brand img {
    height: 50px;
}

.navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.navbar .btn {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-size: 1.05rem;
    padding: 0.6rem 1.5rem;
}

/* Custom Button Styles */
.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #c41e3a 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(235, 29, 38, 0.3);
    background: linear-gradient(135deg, #c41e3a 0%, var(--accent-red) 100%);
}

.btn-outline-dark:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    background-image:
        linear-gradient(to right, rgba(7, 15, 18, 0.75) 0%, rgba(7, 15, 18, 0.4) 50%, rgba(7, 15, 18, 0.1) 100%),
        url('../images/backgrounds/ramiro-bg-1-2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Hero Title with enhanced contrast */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
        0px 0px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
    font-size: clamp(1.5rem, 8vw, 3.5rem) !important;
    padding: 0 1rem;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-optical-sizing: auto;
    font-size: clamp(1rem, 5vw, 2.1rem) !important;
    font-weight: 400;
    opacity: 0.95;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .hero-section {
        background-image:
            linear-gradient(to bottom, rgba(7, 15, 18, 0.7) 0%, rgba(7, 15, 18, 0.4) 100%),
            url('../images/backgrounds/ramiro-bg-1-2.png');
        background-size: auto 100%;
        background-position: center center;
    }
}

/* About Image Effects */
.about-image-container {
    overflow: hidden;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
    position: relative;
}

.about-image-container:hover {
    transform: translateY(-5px);
}

.about-image-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-container:hover .about-image-overlay {
    opacity: 1;
}

/* Vintage Photo Effect */
.about-image-container img {
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.about-image-container:hover img {
    filter: grayscale(0%) contrast(1.2);
}

/* Gallery Section */
.gallery-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

/* Special effects for historical images */
.gallery-item[data-category="historia"] {
    position: relative;
}

.gallery-item[data-category="historia"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(235, 29, 38, 0.1), rgba(7, 15, 18, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0.75rem;
    z-index: 1;
}

.gallery-item[data-category="historia"]:hover::before {
    opacity: 1;
}

.gallery-item[data-category="historia"] img {
    filter: sepia(10%) contrast(1.1);
    transition: filter 0.3s ease;
}

.gallery-item[data-category="historia"]:hover img {
    filter: sepia(0%) contrast(1.2);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-description {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Contact Form */
.form-control:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(235, 29, 38, 0.25);
}

/* Contact Tiles */
.contact-tile {
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
}

.contact-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    background-color: #f8f9fa;
}

.contact-tile:active {
    transform: translateY(-1px);
}

.list-group-item {
    flex: 1;
}

/* Larger icons for WhatsApp and Instagram */
.fa-whatsapp,
.fa-instagram {
    font-size: 1.5rem;
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* Contact Section Layout */
#contact .row {
    align-items: stretch;
}

#contact .col-lg-6 {
    display: flex;
    flex-direction: column;
}

#contact .list-group {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #c41e3a 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

/* Historical Image Enhancements */
.historical-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(235, 29, 38, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Image Loading Animation */
@keyframes imageLoad {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-image-container img,
.gallery-img {
    animation: imageLoad 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px !important;
    }

    .hero-section .row {
        text-align: center;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    /* Mobile image adjustments */
    .about-image-container {
        margin-bottom: 1rem;
    }

    /* Mobile map adjustments */
    .map-container {
        min-height: 300px;
    }

    .map-container iframe {
        height: 300px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .btn,
    footer,
    .back-to-top {
        display: none !important;
    }

    .hero-section {
        padding-top: 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Footer Styles */
footer {
    min-height: auto !important;
}

footer a.hover-underline:hover {
    text-decoration: underline !important;
}