/*
Colores:
Fondo: #fdfdfd (Blanco Roto)
Acentos: linear-gradient(135deg, #8B6914 0%, #B8860B 100%)
Texto: #343a40 (Gris oscuro)
Blanco: #ffffff
Gris claro: #f8f9fa
*/

/* Universal Box-Sizing */
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #343a40;
    background-color: #fdfdfd;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #B8860B !important;
}

.navbar-social a {
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.navbar-social a:hover {
    color: #B8860B;
}

@media (max-width: 991.98px) {
    .navbar .container {
        position: relative;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .navbar-social.d-lg-none {
        position: absolute;
        left: 67%;
        top: 25px; /* Ajuste fino para centrado vertical */
        transform: translate(-50%, -50%); /* Centra los iconos en su propio eje */
    }
}

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding: 40px 0;
}

.hero-subtitle {
    font-family: 'Reenie Beanie', cursive;
    font-size: 32px;
    color: #8B6914;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: 4.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: #B8860B;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-title .highlight {
    font-weight: 600;
    color: #8B6914;
    position: relative;
}

.hero-description {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.hero-btn-primary, .btn-custom {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(139, 105, 20, 0.3);
}

.hero-btn-primary:hover, .btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.4);
    color: white;
}

.hero-btn-secondary {
    color: #B8860B;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    color: #8B6914;
    transform: translateX(5px);
}

.hero-image {
    position: relative;
    text-align: center;
}

.hero-main-image {
    width: 500px;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    opacity: 0;
    animation: fadeInScale 1.2s ease 0.5s forwards;
}

.hero-floating-element {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    opacity: 0;
    animation: fadeInFloat 1s ease 1.5s forwards;
}

.hero-award {
    bottom: -20px;
    left: -30px;
    width: 200px;
    text-align: center;
}

.hero-rating {
    top: 30px;
    right: -40px;
    width: 180px;
    text-align: center;
}

.floating-stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 10px;
}

.floating-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInFloat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 105, 20, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 992px) {
    .hero-section {
        height: auto;
        padding: 60px 0;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 30px;
    }

    .hero-text {
        order: 2;
        padding: 0;
    }

    .hero-image {
        order: 1;
        width: 100%;
    }

    .hero-main-image {
        width: 100%;
        max-width: 400px;
        height: auto;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-floating-element,
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
}

@media (max-width: 576px) {
    /* Hero: reduce height and spacings on small phones */
    .hero-section { height: auto; min-height: auto; padding: 50px 0; overflow: visible; }
    .hero-content { gap: 24px; padding: 0 16px; }
    .hero-subtitle { font-size: 1.6rem; }
    .hero-description { font-size: 1rem; }
    .hero-cta { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .hero-btn-primary, .hero-btn-secondary, .btn-custom { padding: 12px 20px; font-size: 14px; }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-btn-primary, .hero-btn-secondary, .btn-custom {
        padding: 12px 25px;
        font-size: 14px;
    }
    /* Avoid scroll trapping in embeds */
    .map-container iframe { pointer-events: none; }
    #wp-widget-reviews { pointer-events: none; }
}

.page-header {
    position: relative;
    padding: 100px 0;
    background-image: url('../files/theme/images/header-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #ffffff;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-header .lead {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #f8f9fa;
}
.section {
    padding: 100px 0;
    overflow-x: hidden; /* Previene el desbordamiento horizontal por animaciones */
}

.section-bg {
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    position: relative;
    padding-bottom: 20px;
	color: #B8860B;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: #B8860B;
    bottom: 0;
    left: calc(50% - 30px);
}

.btn-custom {
    padding: 12px 30px;
}

.img-fluid-shadow {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 15px;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.service-card .card-title {
    color: #B8860B;
}

/* Testimonial */
.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.testimonial-card .name {
    font-weight: 700;
    margin-bottom: 0;
}

.testimonial-card .role {
    font-size: 0.9rem;
    color: #888;
}

/* Bodas.net Widget Container */
.bodas-net-widget-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.bodas-net-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

#wp-widget-reviews {
    overflow: hidden;
    border-radius: 10px;
}


/* Instagram Feed Simulation */
.instagram-post-card {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
    color: #343a40; /* Hereda el color de texto principal */
}

a.text-decoration-none {
    color: inherit; /* Asegura que el enlace no cambie el color del texto */
}

.instagram-post-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: 600;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.post-footer {
    padding: 10px 15px;
}

.post-footer .bi {
    font-size: 1.5rem;
    margin-right: 15px;
}

.post-footer .likes {
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 0;
}


/* Footer */

.blog-post-card .card-text {
    height: 80px;
    overflow: hidden;
    position: relative;
}

.blog-post-card .card-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, white, rgba(255,255,255,0));
}

.footer-dark {
    background-color: #343a40;
    color: #f8f9fa;
    padding-top: 60px;
    padding-bottom: 30px;
}
.footer-dark h5 {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-dark .footer-text, .footer-dark a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-dark a:hover {
    color: #B8860B;
}
.footer-dark .social-icons a {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}
.footer-dark .social-icons a:hover {
    color: #B8860B;
}
.footer-dark hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    height: 250px;
}
.map-container iframe {
    height: 100%;
    width: 100%;
    border: 0;
}
.footer-dark .list-unstyled li {
    margin-bottom: 0.5rem;
}
.row {
    overflow-x: hidden;
}
.footer-dark .bottom-text {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
}
.footer-dark a {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Blog Styles */
.featured-post-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

/* Portfolio filters */
#portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
#portfolio-filters .btn {
    border-radius: 50px;
    padding: 0.35rem 0.75rem;
}

@media (max-width: 360px) {
    #portfolio-filters { gap: 0.4rem; }
    #portfolio-filters .btn { font-size: 0.85rem; padding: 0.35rem 0.6rem; }
}

.featured-post-card:hover {
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.featured-post-card .card-title {
    font-size: 2.5rem;
    color: #B8860B;
}

.blog-post-card {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: none;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.blog-post-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.sidebar-widget {
    background-color: #f8f9fa;
    border-radius: 15px;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.widget-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 40px;
    height: 3px;
    background: #B8860B;
    bottom: 0;
    left: 0;
}

.sidebar-widget ul li a:hover {
    color: #B8860B !important;
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.pagination .page-item .page-link {
    color: #343a40;
    border-radius: 50px !important;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(139, 105, 20, 0.4);
}

/* Post Content */
.post-content h3 {
    font-size: 2rem;
    color: #B8860B;
}

.post-content .blockquote {
    border-left: 4px solid #B8860B;
    padding-left: 20px;
    font-style: italic;
    font-size: 1.2rem;
}

.author-box {
    border: 1px solid #e9ecef;
}

.cta-widget {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Custom Service Card Colors */
.service-card .text-primary {
    color: #B8860B !important;
}

.service-card .btn-primary {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 100%);
    border: none;
    color: #ffffff;
}

.service-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 105, 20, 0.4);
}

.service-card.border-primary {
    border-color: #B8860B !important;
}

.service-card .bg-primary {
    background: linear-gradient(135deg, #8B6914 0%, #B8860B 100%) !important;
}

@media (max-width: 767.98px) {
    .footer-nav-columns {
        columns: 2;
        -webkit-columns: 2;
        -moz-columns: 2;
    }

    .footer-dark .social-icons {
        position: relative;
        left: 70%;
        top: -60px;
        margin-bottom: -40px;
    }
}




/* --- Responsive refinements for very small devices (5" ~320–360px) --- */
/* Prevent content overflow inside blog post body */
.post-body img, .post-body video, .post-body iframe {
    max-width: 100%;
    height: auto;
    display: block;
}
.post-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
}
.post-body pre, .post-body code {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Small phones and below */
@media (max-width: 576px) {
    .section { padding: 70px 0; }
    .section-title { font-size: 2.2rem; margin-bottom: 40px; }

    .page-header { padding: 70px 0; background-attachment: scroll; }
    .page-header h1 { font-size: 2.4rem; }
    .page-header .lead { font-size: 1.05rem; }

    .blog-post-card .card-img-top { height: 180px; }
}

/* Very small phones (~320–360px width) */
@media (max-width: 360px) {
    .hero-section { height: auto; min-height: auto; padding: 40px 0; overflow: visible; }
    .hero-content { gap: 24px; padding: 0 16px; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .hero-description { font-size: 0.95rem; }
    .hero-btn-primary, .hero-btn-secondary, .btn-custom { padding: 10px 16px; font-size: 13px; }

    .section { padding: 56px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 28px; }

    .blog-post-card .card-img-top { height: 160px; }
}
