/* Global Styles */
:root {
    --primary-color: #062629;
    --secondary-color: #bfa694;
    --text-light: #ffffff;
    --text-dark: #333333;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    padding-top: 90px; /* Coincide con la altura de la navbar */
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* text-align: justify; */ /* Eliminado para aplicar de forma más específica */
}

/* Typography Standardization */
p {
    text-align: justify;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: inherit;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
}

/* Card styling */
.card {
    margin-bottom: 1.5rem;
}

.card-header h3 {
    margin-bottom: 0;
}

.card-body h5 {
    margin-bottom: 0.5rem;
}

/* List styling */
ul.list-unstyled li {
    margin-bottom: 0.75rem;
}

/* Icon styling */
.service-icon i,
.feature-icon i,
.valores-icon i {
    font-size: 2rem;
}

/* Section heading styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background-color: currentColor;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Benefit item styling */
.benefit-item h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Standard icon sizing */
.icon-sm {
    font-size: 1rem;
}

.icon-md {
    font-size: 1.5rem;
}

.icon-lg {
    font-size: 2rem;
}

.icon-xl {
    font-size: 3rem;
}

/* Navbar Styles */
.navbar {
    background-color: rgba(191, 166, 148, 0.85) !important;
    padding: 10px 0;
    transition: all 0.3s;
    z-index: 1000;
    height: 90px; /* Altura fija para la navbar */
    display: flex;
    align-items: center;
}

/* Fix for mobile menu background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(191, 166, 148, 0.95) !important;
        border-radius: 8px;
        margin-top: 10px;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background-color: rgba(191, 166, 148, 0.95) !important;
    }
}

.navbar-brand img {
    height: 50px; /* Ajustando el tamaño del logo */
    max-width: 100%;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #fff;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-light .navbar-nav .nav-item.active .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: #fff;
}

.navbar-light .navbar-nav .nav-item.active .nav-link::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 80%;
    background-color: #fff;
}

/* Ensure nav items with multiple links are vertically aligned */
.navbar-light .navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: var(--primary-color);
    margin-left: 15px;
    font-size: 18px;
}

.social-icons a:hover {
    color: #fff;
}

/* Custom WhatsApp Button Style */
.btn-whatsapp-custom {
    background-color: var(--primary-color) !important; /* Use !important to override Bootstrap if necessary */
    border-color: var(--primary-color) !important; /* Use !important to override Bootstrap if necessary */
    color: var(--text-light) !important; /* Ensuring text is light for dark background */
    padding: 10px 15px;
    font-size: 1.1em;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-whatsapp-custom:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Ensure navbar icons also use primary color and hover effect if desired */
.navbar-light .navbar-nav .nav-link i {
    color: var(--primary-color);
    transition: color 0.3s ease;
    margin-left: 8px; /* Add some space between text and icon */
}

.navbar-light .navbar-nav .nav-link:hover i {
    color: #fff;
}

.navbar-light .navbar-nav .nav-item.active .nav-link i,
.navbar-light .navbar-nav .nav-link.active i {
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 150px; /* Restaurando padding original */
    background-color: var(--primary-color);
    color: var(--text-light);
    position: relative;
    background-image: linear-gradient(rgba(6, 38, 41, 0.75), rgba(6, 38, 41, 0.8)), url('../images/index.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(191, 166, 148, 0.25) 0%, rgba(6, 38, 41, 0) 70%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-title span {
    display: block;
}

.cta-button {
    background-color: #bfa694;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #ab9585;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Hero Decorative Elements */
.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-decoration:before {
    content: '';
    position: absolute;
    top: 15%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: rgba(191, 166, 148, 0.05);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.hero-decoration:after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(191, 166, 148, 0.03);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, 30px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Intro Section */
.intro-section {
    padding: 100px 0; /* Restaurando padding original */
}

.intro-subtitle {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
}

/* Services Section */
.services-section {
    padding: 100px 0; /* Restaurando padding original */
    background-color: #f9f9f9;
}

.services-section h2, .why-us-section h2, .team-section h2, .contact-section h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.service-box {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Why Choose Us Section */
.why-us-section {
    padding: 100px 0; /* Restaurando padding original */
}

.why-us-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 48px 0;
}

.why-us-col {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.why-us-item {
    min-height: 160px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
}

.reason-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 20px;
    line-height: 1;
}

.reason-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Team Section */
.team-section {
    padding: 100px 0; /* Restaurando padding original */
    background-color: #f9f9f9;
}

.team-member {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}

.professional-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.icon-container i {
    font-size: 50px;
    color: var(--primary-color);
}

.icon-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.5;
}

.degree {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    margin: 0 auto;
    width: fit-content;
}

.team-member-name {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member-position {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-info {
    margin-bottom: 30px;
}

/* Reglas añadidas para forzar icono redondo */
.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px; /* Ensure minimum width */
    min-height: 50px; /* Ensure minimum height */
    line-height: 50px; /* Helps with vertical centering for single line icon if flex fails */
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; /* Ensure icon inside is centered */
    font-size: 20px;
    margin-right: 20px;
    box-sizing: border-box; /* Ensure padding/border don't expand the box */
    padding: 0; /* Ensure no internal padding is affecting shape */
}

.form-control {
    height: 50px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(191, 166, 148, 0.25);
    outline: none;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

/* Form validation styles */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Form group spacing */
#contactForm .row {
    margin-bottom: 0;
}

#contactForm .row .col-md-6:first-child {
    padding-right: 10px;
}

#contactForm .row .col-md-6:last-child {
    padding-left: 10px;
}

@media (max-width: 768px) {
    #contactForm .row .col-md-6 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Map Section */
.map-section {
    height: 400px;
}

/* Regla añadida para mapa responsivo */
.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0; 
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 20px;
}

.footer-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: var(--text-light);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }
    
    .intro-title, .services-section h2, .why-us-section h2, .team-section h2, .contact-section h2 {
        font-size: 30px;
    }
    
    .social-icons {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px; /* Restaurando padding original responsive */
    }
    
    .intro-section, .services-section, .why-us-section, .team-section, .contact-section {
        padding: 60px 0; /* Restaurando padding original responsive */
    }
}

@media (max-width: 991px) {
    .why-us-row { flex-direction: column; gap: 0; }
    .why-us-col { width: 100%; }
    .why-us-item { min-height: unset; }
}

/* Additional Image Styles */
img.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Ensure all buttons have the same style */
.btn.cta-button, 
.contact-section .btn.cta-button,
form .btn.cta-button {
    background-color: #bfa694;
    color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.cta-button:hover, 
.contact-section .btn.cta-button:hover,
form .btn.cta-button:hover {
    background-color: #ab9585;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

/* Animation Styles */
@keyframes textAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-text {
    animation: textAppear 0.8s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

/* Nueva animación para scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for animate-on-scroll */
.animate-on-scroll.is-visible.td-1 { transition-delay: 0.5s; }
.animate-on-scroll.is-visible.td-2 { transition-delay: 1.0s; }
.animate-on-scroll.is-visible.td-3 { transition-delay: 1.5s; }
.animate-on-scroll.is-visible.td-4 { transition-delay: 2.0s; }
.animate-on-scroll.is-visible.td-5 { transition-delay: 2.5s; }
.animate-on-scroll.is-visible.td-6 { transition-delay: 3.0s; }
.animate-on-scroll.is-visible.td-7 { transition-delay: 3.5s; }
.animate-on-scroll.is-visible.td-8 { transition-delay: 4.0s; }

/* Page Title Section */
.page-title-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 120px 0 60px;
    text-align: center;
    margin-bottom: 60px;
}

.page-title-section h1 {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Reusable background class */
.section-with-fond2-bg {
  background-image: url('../images/fond2.png'); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; 
}

/* New background classes for fondo1.png */
.section-fond1-bg-light {
  background-image: url('../images/fondo1.png'); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.section-fond1-bg-dark-overlay {
  background-image: url('../images/fondo1.png'); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1; 
}

.section-fond1-bg-dark-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 38, 41, 0.75); 
  z-index: -1; 
}

/* Detailed Services */
.detailed-services {
    padding: 80px 0;
    background: #f9f9f9;
}

.detailed-services h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.service-list {
    padding-left: 20px;
    margin-bottom: 40px;
}

.service-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-list li:before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary-color);
    font-size: 14px;
}

/* Case Studies */
.case-studies {
    padding: 80px 0;
    background-color: #fff;
}

.case-study {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.case-study:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.case-study-img {
    height: 200px;
    overflow: hidden;
}

.case-study-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-study:hover .case-study-img img {
    transform: scale(1.05);
}

.case-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.case-icon-container i {
    font-size: 80px;
    color: var(--secondary-color);
    transition: transform 0.5s;
}

.case-study:hover .case-icon-container i {
    transform: scale(1.1);
}

.case-study-content {
    padding: 20px;
}

.case-study-content h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Make main sections fill viewport height and center content */
.hero-section,
.intro-section,
.services-section,
.why-us-section,
.team-section,
.resumen-informativo-section {
    min-height: 100vh; /* Ensure section takes at least full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the content container */
    padding-top: 60px; /* Consistent internal top padding */
    padding-bottom: 60px; /* Consistent internal bottom padding */
    box-sizing: border-box; /* Padding included in height calculation */
}

/* Ensure the general padding rule for these sections is overridden or removed if it was defined like this:
.intro-section, .services-section, .why-us-section, .team-section, .contact-section {
    padding: 100px 0; 
} 
*/

/* Resumen Informativo Section - Actualizado para Bootstrap Carousel y tu tema */
/* The main layout for .resumen-informativo-section is now handled by the combined rule above. */
/* We only keep specific styles for its inner elements if needed, or remove this block if all covered. */
/* For example, background and color are still specific if not part of the combined rule, but they are. */
/* Let's ensure its specific background and text color are still applied if they were different */
.resumen-informativo-section {
    background-color: var(--secondary-color); /* Keep specific background */
    color: var(--primary-color); /* Keep specific text color */
    padding-top: 0; /* Remove top padding */
    padding-bottom: 0; /* Remove bottom padding */
    /* min-height, display, flex-direction, justify-content, box-sizing are now inherited or set by the combined rule */
}

.resumen-informativo-section .resumen-title {
    font-size: 1.8rem; /* Un poco más grande */
    text-transform: uppercase;
    color: var(--primary-color); /* Título en color primario */
    font-weight: 700; /* Más peso para el título */
    margin-bottom: 0.5rem;
    /* Si la línea se genera por ser inline-block y tener position relative, 
       podríamos necesitar resetearlos, pero display:none en ::after es más directo */
}

.resumen-informativo-section .resumen-date {
    font-size: 0.9rem;
    color: var(--primary-color); /* Fecha también en color primario, o un gris oscuro si prefieres */
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Estilos para las tarjetas dentro del carrusel de Bootstrap */
.resumen-informativo-section .carousel-item .resumen-card {
    background-color: #ffffff; /* Tarjetas blancas para buen contraste */
    color: var(--text-dark);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 0 10px; /* Espacio para que no se peguen en vistas de múltiples items */
    /* height: 100%; */ /* Removed */
    min-height: 300px; /* Added fixed minimum height */
}

.resumen-informativo-section .carousel-item .resumen-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color); /* Título de tarjeta en color primario */
    margin-bottom: 0.75rem;
}

.resumen-informativo-section .carousel-item .resumen-card .ver-noticia-link {
    color: #062629; /* Color específico solicitado */
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: underline; /* Subrayado para que parezca más un enlace estándar */
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.resumen-informativo-section .carousel-item .resumen-card .ver-noticia-link:hover {
    color: var(--secondary-color); /* Cambio de color al pasar el mouse, o un primario más oscuro */
    text-decoration: none;
}

.resumen-informativo-section .carousel-item .resumen-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
    text-align: justify; /* Texto justificado */
}

/* Estilos para los controles e indicadores del carrusel de Bootstrap */
.resumen-informativo-section .carousel-control-prev-icon,
.resumen-informativo-section .carousel-control-next-icon {
    background-color: var(--primary-color); /* Iconos de control en color primario */
    border-radius: 50%;
    padding: 15px; /* Hacerlos un poco más grandes */
    background-size: 50% 50%;
}
.resumen-informativo-section .carousel-control-prev,
.resumen-informativo-section .carousel-control-next {
    width: 5%; /* Ajustar ancho si es necesario */
}


.resumen-informativo-section .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color); /* Indicadores en color primario */
    opacity: 0.5;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.resumen-informativo-section .carousel-indicators .active {
    opacity: 1;
    background-color: var(--secondary-color); /* Indicador activo en color secundario (o primario más fuerte) */
}

/* Botones inferiores */
.resumen-informativo-section .btn-resumen-informativo {
    background-color: var(--primary-color); /* Botones en color primario */
    color: var(--text-light); /* Texto claro para contraste */
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.resumen-informativo-section .btn-resumen-informativo:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.resumen-informativo-section .btn-resumen-informativo i {
    margin-right: 8px;
}

/* Card Standardization */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row > [class*='col-'] {
    display: flex;
}

.equal-height-row .card {
    width: 100%;
    height: 100%;
}

.card-body.d-flex.flex-column {
    height: 100%;
}

.card-body.d-flex.flex-column ul.list-unstyled.h-100 {
    display: flex;
    flex-direction: column;
}

.benefit-item {
    margin-bottom: 1rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

/* Card styling for all benefit cards */
.benefit-card {
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px; 
    overflow: hidden;
    height: 100%;
    border: none;
}

.benefit-card .card-header {
    background-color: rgba(255,255,255,0.2);
    padding: 15px;
    border: none;
}

/* Styles for Documentos ARCAD Section */
.documentos-arcad-section {
    background-color: #f9f5f0; /* Light background for contrast */
    width: 100%;
    box-sizing: border-box;
    padding: 80px 0; /* Adjusted vertical padding */
}

/* Restore and increase padding inside the container */
.documentos-arcad-section .container {
    padding-top: 150px; /* Increased vertical padding */
    padding-bottom: 150px; /* Increased vertical padding */
}

/* Ensure carousel is centered */
.documentos-arcad-section #arcadDocsCarousel {
    max-width: 1140px; /* Match Bootstrap's container max-width */
    margin-left: auto;
    margin-right: auto;
}

/* Ensure carousel rows are centered */
.documentos-arcad-section #arcadDocsCarousel .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Section title styling that was removed */
.documentos-arcad-section .section-title {
    display: block; /* Make title block level for text-align */
    text-align: left; /* Align title text to the left */
    color: var(--primary-color); /* Use primary color */
    margin-bottom: 0.5rem; /* Adjust margin */
    padding-bottom: 15px; /* Aseguramos el padding para la línea */
    position: relative; /* Necesario para el posicionamiento de ::after */
}

/* Adjust the ::after pseudo-element for left alignment and full width of the title */
.documentos-arcad-section .section-title::after {
    display: none; 
}

.documentos-arcad-section .lead {
    text-align: left; /* Align subtitle to the left */
    margin-bottom: 2rem; /* Space before carousel */
    color: var(--text-dark);
}

/* Fix card styling */
.arcad-doc-card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    min-height: 280px; /* Increased min-height */
    margin: 0 auto; /* Center cards within columns */
    max-width: 350px; /* Limit maximum width */
}

.arcad-doc-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    object-fit: contain;
}

/* Increase padding inside card body */
.arcad-doc-card .card-body {
    padding: 2rem; /* Increased padding */
}

.arcad-doc-card .card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.arcad-doc-card .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.arcad-doc-card .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Carousel Control Styling */
#arcadDocsCarousel .arcad-carousel-control {
    background-color: rgba(0, 0, 0, 0.5); /* Darker controls */
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50% 50%;
}

#arcadDocsCarousel .carousel-control-prev {
    left: -15px; /* Adjust position */
}

#arcadDocsCarousel .carousel-control-next {
    right: -15px; /* Adjust position */
}

/* Styling for multi-item carousel (Optional - Requires specific HTML structure or JS) */
/* Basic example: assumes 3 items per slide using Bootstrap grid */
@media (min-width: 768px) {
    #arcadDocsCarousel .carousel-inner .carousel-item > div {
        display: flex;
    }
    #arcadDocsCarousel .carousel-inner .carousel-item .col-md-4 {
        display: flex;
        align-items: stretch; /* Make cards in a row equal height */
    }
}

/* Style for the image inside ARCAD document cards */
.arcad-doc-card-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 60px; /* Adjust height as needed */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Mobile responsive styles for documentos ARCAD section */
@media (max-width: 768px) {
    .documentos-arcad-section .container {
        padding-top: 40px !important; /* Reduce excessive padding on mobile */
        padding-bottom: 40px !important; /* Reduce excessive padding on mobile */
    }
    
    .documentos-arcad-section {
        padding: 40px 0 !important; /* Reduce section padding on mobile */
    }
    
    /* Ensure button container is visible on mobile */
    .documentos-arcad-section .text-center {
        margin-bottom: 20px !important;
        overflow: visible !important;
    }
    
    /* Make sure cta-button is visible on mobile */
    .documentos-arcad-section .btn.cta-button {
        display: inline-block !important;
        visibility: visible !important;
        margin-top: 20px !important;
        width: auto !important;
        min-width: 120px !important;
    }
    
    /* Adjust carousel on mobile */
    #arcadDocsCarousel {
        margin-bottom: 20px !important;
    }
    
    /* Stack cards vertically on mobile */
    #arcadDocsCarousel .carousel-inner .carousel-item .col-md-4 {
        margin-bottom: 20px;
    }
}

/* Estilos para la calculadora ISR */
.isr-detailed-result {
    max-width: 800px;
    margin: 0 auto;
}

/* Reducir espacio en blanco solo en versión web (desktop) */
@media (min-width: 768px) {
    .isr-detailed-result {
        max-width: 900px;
        margin: 0 auto;
    }
    
    .isr-detailed-result .mb-2 {
        margin-bottom: 0.75rem !important;
    }
    
    .isr-detailed-result .float-end {
        margin-left: 40px;
    }
    
    /* Reducir el espacio entre conceptos y valores */
    .isr-detailed-result strong {
        display: inline-block;
        min-width: 220px;
    }
}

/* Mantener espaciado original en mobile */
@media (max-width: 767px) {
    .isr-detailed-result {
        max-width: 100%;
    }
    
    .isr-detailed-result .mb-2 {
        margin-bottom: 1rem !important;
    }
}

