/* ============================================================
   ESTILOS GENERALES
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    padding-top: 95px;
}

/* ============================================================
   HEADER - BARRA DE NAVEGACIÓN
   ============================================================ */

   /* Logo */

.logo{
	height: 70px;
    width: auto;
}

#nav-bar {
    position: fixed;
    top: 0;
    left: 0;                   /* ← Se pega a la izquierda */
    right: 0;                  /* ← Se pega a la derecha */
    width: 100%;               /* ← Ocupa todo el ancho */
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 28px;
    color: #E0A041 !important;
    transition: transform 0.3s ease;
    font-weight: 700;
}

/* .navbar-brand:hover {
    transform: rotate(-10deg) scale(1.1);
} */

.navbar-nav li {
    padding: 0 8px;
}

.navbar-nav li a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #555 !important;
}

.navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #E0A041;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav li a:hover::after {
    width: 70%;
}

.navbar-nav li a:hover {
    color: #E0A041 !important;
}

.navbar {
    background: transparent !important;
}

.navbar-toggler {
    border: none !important;
    padding: 8px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* ============================================================
   MENÚ DESPLEGABLE - SERVICIOS
   ============================================================ */
.nav-item.dropdown-hover:hover .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

.nav-item.dropdown-hover .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 250px;
    padding: 10px 0;
    margin-top: 0;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-item i {
    font-size: 20px;
    color: #E0A041;
    width: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: #FFF5EE;
    color: #E0A041;
    padding-left: 30px;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

.dropdown-item .item-description {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    display: block;
    margin-top: 2px;
}

.navbar-nav .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    border: none;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ============================================================
   BOTÓN CONOCE MÁS
   ============================================================ */
.btn-primary {
    margin-top: 25px;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #E0A041 !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.4);
}

.btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(5px);
}

/* ============================================================
   MODAL - VENTANA EMERGENTE
   ============================================================ */

/* --- FONDO BORROSO (OVERLAY) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.4s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- CONTENEDOR DEL MODAL --- */
.modal-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 950px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 45px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- BOTÓN CERRAR --- */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #E0A041;
    background: #FFF5EE;
    transform: rotate(90deg);
}

/* --- TÍTULO DEL MODAL --- */
.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: #888;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 400;
}

.modal-subtitle span {
    color: #E0A041;
    font-weight: 600;
}

/* --- LÍNEA DECORATIVA --- */
.modal-divider {
    width: 60px;
    height: 4px;
    background: #E0A041;
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* --- GRID DE VALORES --- */
.modal-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.modal-value-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.modal-value-card:hover {
    transform: translateY(-5px);
    border-color: #E0A041;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
}

.modal-value-icon {
    width: 60px;
    height: 60px;
    background: #FFF5EE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 26px;
    color: #E0A041;
    transition: all 0.4s ease;
}

.modal-value-card:hover .modal-value-icon {
    background: #E0A041;
    color: #fff;
    transform: scale(1.1) rotate(-10deg);
}

.modal-value-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.modal-value-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* --- SCROLL BAR PERSONALIZADA --- */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #E0A041;
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #e05a00;
}

/* ============================================================
   SLIDER/CARRUSEL
   ============================================================ */
#slider {
    width: 100%;
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 500px;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.55);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto !important;
    text-align: left;
    padding: 0 50px;
    max-width: 700px;
}

.carousel-caption h5 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    color: #fff;
}

.carousel-caption p {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

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

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #E0A041;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background: #E0A041;
    transform: scale(1.3);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
#about {
    padding: 80px 0;
    background: #ffffff;
    scroll-margin-top: 80px;
}

#about h2 {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 40px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #E0A041;
    border-radius: 2px;
}

.about-content {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    padding-top: 10px;
}

#about .btn {
    margin-top: 25px;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #E0A041 !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    color: #fff;
}

#about .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 0, 0.4);
}

#about .card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#about .card:hover {
    transform: scale(1.02);
}

#about .card img {
    height: 350px;
    object-fit: cover;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
#services {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.88)),
        url("../img/fondo_servicios.8de8fca1381e.JPG");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    scroll-margin-top: 80px;
}

#services .container {
    max-width: 2200px;  /* ← Limita el ancho máximo para mejor distribución */
}

#services .section-title {
    text-align: center;
    color: #fff !important;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

#services .section-title::after {
    content: '';
    background: #376395;
    display: block;
    height: 4px;
    width: 80px;
    margin: 20px auto;
    border-radius: 2px;
}

#services .service-grid {
    margin-top: 40px;
}

.sin {
    text-decoration: none !important;
}

/* ===== TARJETAS DE SERVICIOS ===== */

#services .service-card {
    padding: 35px 25px;
    border-radius: 16px;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    height: 100%;
    text-align: center;
    color: #f1f1f1; 
    display: block;
}

#services .service-card:hover {
    background: #376395;
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(76, 0, 255, 0.3);
    text-decoration: none ;
}

#services .service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    line-height: 50px;
    transition: all 0.4s ease;
}

#services .service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(-10deg);
}

#services .service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

#services .service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   RESPONSIVE - Ajuste de columnas
   ============================================================ */

/* Pantallas muy grandes (≥1400px) - 5 servicios por fila */
@media (min-width: 1400px) {
    #services .service-card {
        padding: 35px 25px;
        min-height: 300px;
    }
    
    #services .service-card h3 {
        font-size: 20px;
    }
    
    #services .service-card p {
        font-size: 14px;
    }
}

/* Pantallas grandes (≥1200px) - 5 servicios por fila */
@media (min-width: 1200px) and (max-width: 1399px) {
    #services .service-card {
        padding: 28px 18px;
        min-height: 280px;
    }
    
    #services .service-card h3 {
        font-size: 17px;
    }
    
    #services .service-card p {
        font-size: 12px;
    }
    
    #services .service-icon {
        font-size: 36px;
        width: 70px;
        height: 70px;
        line-height: 34px;
        padding: 15px;
    }
}

/* Pantallas medianas (≥992px) - 4 servicios por fila */
@media (min-width: 992px) and (max-width: 1199px) {
    #services .service-card {
        padding: 25px 18px;
        min-height: 260px;
    }
    
    #services .service-card h3 {
        font-size: 16px;
    }
    
    #services .service-card p {
        font-size: 12px;
    }
    
    #services .service-icon {
        font-size: 34px;
        width: 65px;
        height: 65px;
        line-height: 30px;
        padding: 13px;
    }
}

/* Tabletas (≥768px) - 3 servicios por fila */
@media (min-width: 768px) and (max-width: 991px) {
    #services .service-card {
        padding: 25px 18px;
        min-height: 250px;
    }
    
    #services .service-card h3 {
        font-size: 16px;
    }
    
    #services .service-card p {
        font-size: 12px;
    }
    
    #services .service-icon {
        font-size: 34px;
        width: 65px;
        height: 65px;
        line-height: 30px;
        padding: 13px;
    }
}

/* Móviles grandes (≥576px) - 2 servicios por fila */
@media (min-width: 576px) and (max-width: 767px) {
    #services .service-card {
        padding: 22px 15px;
        min-height: 230px;
    }
    
    #services .service-card h3 {
        font-size: 15px;
    }
    
    #services .service-card p {
        font-size: 12px;
    }
    
    #services .service-icon {
        font-size: 30px;
        width: 60px;
        height: 60px;
        line-height: 28px;
        padding: 12px;
    }
}

/* Móviles pequeños (<576px) - 1 servicio por fila */
@media (max-width: 575px) {
    #services .service-card {
        padding: 25px 20px;
        min-height: 200px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    #services .service-card h3 {
        font-size: 16px;
    }
    
    #services .service-card p {
        font-size: 12px;
    }
    
    #services .service-icon {
        font-size: 32px;
        width: 65px;
        height: 65px;
        line-height: 30px;
        padding: 13px;
    }
}

/* ============================================================
   PROYECTOS - ANIMACIÓN DE ONDA
   ============================================================ */
#proyects {
    padding: 80px 0;
    background: #f8f9fa;
    scroll-margin-top: 80px;
}

#proyects .section-title {
    color: #1a1a1a !important;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
}

#proyects .section-title::after {
    content: '';
    background: #E0A041;
    display: block;
    height: 4px;
    width: 80px;
    margin: 20px auto;
    border-radius: 2px;
}

/* ===== ANIMACIÓN DE ONDA ===== */
/* .wave-text-container {
    overflow: hidden;
    padding: 20px 0 40px 0;
}

.wave-text {
    display: inline-block;
    font-weight: 700;
    font-size: 38px;
    color: #1a1a1a;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wave-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.wave-text .char {
    display: inline-block;
    transition: all 0.3s ease;
}

.wave-text.visible .char {
    animation: waveEffect 0.6s ease forwards;
}

@keyframes waveEffect {
    0% {
        opacity: 0;
        transform: translateY(30px) rotate(5deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
} */

/* ===== TARJETAS DE PROYECTOS ===== */
#proyects .profile {
    padding: 30px 10px 25px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
}

#proyects .profile:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.proyec {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #E0A041;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    display: block;
}

#proyects .profile:hover .proyec {
    transform: scale(1.05);
    border-color: #e05a00;
}

#proyects blockquote {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

#proyects h3 {
    font-size: 22px;
    font-weight: 700;
    color: #E0A041;
    margin-top: 10px;
}

/* ============================================================
   ZOOM DE IMAGENES PROYECTOS
   ============================================================ */

.proyec-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.proyec-wrapper .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 40px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.proyec-wrapper:hover .overlay-icon {
    opacity: 1;
}

.proyec-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
}

.proyec-wrapper:hover::after {
    opacity: 1;
}

/* ============================================================
   MODAL DE IMAGEN (Fondo borroso)
   ============================================================ */

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 252, 252, 0.61);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 40px;
    animation: modalFadeIn 0.4s ease;
}

.image-modal.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal .modal-content {
    position: relative;
    border-radius: 16px;
    max-width: 80%;
    max-height: 100%;
    animation: modalZoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.image-modal .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 30px 80px #e0a04198;
    object-fit: contain;
    border: 3px solid #E0A041;
}

/* ===== BOTÓN CERRAR MODAL ===== */
.modal-close-btn {
    position: absolute;
    top: -50px;
    right: -10px;
    background: none;
    border: none;
    color: #0f0f0f7e;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    line-height: 1;
}

.modal-close-btn:hover {
    transform: rotate(90deg);
    color: #E0A041;
}

/* ===== TÍTULO DEL PROYECTO EN MODAL ===== */
.modal-caption {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    border-radius: 50px;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #E0A041;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .proyec {
        width: 220px;
        height: 220px;
    }

    .section-title {
        font-size: 32px;
    }

    .image-modal {
        padding: 20px;
    }

    .modal-close-btn {
        top: -45px;
        right: 0;
        font-size: 30px;
    }

    .modal-caption {
        font-size: 14px;
        padding: 8px 18px;
        bottom: -50px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .proyec {
        width: 180px;
        height: 180px;
    }

    .section-title {
        font-size: 26px;
    }

    #proyects .profile {
        padding: 20px 15px;
    }

    #proyects blockquote {
        font-size: 13px;
    }

    #proyects h3 {
        font-size: 18px;
    }

    .image-modal {
        padding: 15px;
    }

    .modal-close-btn {
        font-size: 26px;
        top: -40px;
    }

    .modal-caption {
        font-size: 12px;
        padding: 6px 14px;
        bottom: -45px;
    }
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contact {
    padding: 10px 0;
    background: #ffffff;
    scroll-margin-top: 80px;
}

#contact .section-title {
    color: #1a1a1a !important;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
}

#contact .section-title::after {
    content: '';
    background: #E0A041;
    display: block;
    height: 4px;
    width: 80px;
    margin: 20px auto;
    border-radius: 2px;
}

.contact-form {
    padding: 10px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.form-control {
    border-radius: 12px !important;
    border: 2px solid #e8e8e8 !important;
    padding: 14px 18px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: #E0A041 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1) !important;
    background: #ffffff;
}

.contact-form .btn {
    padding: 14px 50px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #E0A041 !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    color: #fff;
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.4);
}

.contact-info {
    padding: 10px 20px;
}

.follow {
    background: #f8f9fa;
    padding: 18px 20px;
    margin: 12px 0;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #E0A041;
}

.follow:hover {
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
}

.contact-info .fas {
    color: #E0A041 !important;
    font-size: 20px;
    margin-right: 15px;
    width: 30px;
}

.contact-info .fab {
    font-size: 32px;
    margin: 0 10px;
    color: #555;
    transition: all 0.3s ease;
}

.contact-info .fab:hover {
    color: #E0A041;
    transform: translateY(-3px);
}


/* ============================================================
   ESTILOS PARA VALIDACIÓN DEL FORMULARIO (SOLO ERRORES)
   ============================================================ */

/* --- ESTADO NORMAL --- */
.form-control {
    border-radius: 12px !important;
    border: 2px solid #e8e8e8 !important;
    padding: 14px 18px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #333;
    width: 100%;
}

.form-control:focus {
    border-color: #E0A041 !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1) !important;
    background: #ffffff;
}

/* --- ESTADO CON ERROR --- */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* --- MENSAJE DE ERROR --- */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #dc3545;
    background: #f8d7da;
    padding: 8px 15px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.invalid-feedback.d-block {
    display: block !important;
}

.invalid-feedback i {
    margin-right: 8px;
}

/* --- CONTADOR DE CARACTERES --- */
#charCount {
    font-size: 0.75rem;
    color: #adb5bd;
    margin-top: 5px;
    padding: 0 5px;
}

#charCountNumber {
    font-weight: 600;
    transition: color 0.3s ease;
}

#charCountNumber.warning {
    color: #ffc107;
}

#charCountNumber.danger {
    color: #dc3545;
}

/* --- BOTÓN --- */
.btn-primary {
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #FF6B00 !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
    color: #fff;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 107, 0, 0.4);
}

.btn-primary i {
    margin-right: 10px;
}

/* --- ALERTAS DE MENSAJE --- */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    margin-right: 10px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .form-control {
        padding: 12px 15px !important;
        font-size: 14px;
    }
    
    .btn-primary {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 25px 0;
    text-align: center;
    border-top: 3px solid #E0A041;
}

#footer p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #E0A041;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 5px 25px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

#back-to-top:hover {
    transform: translateY(-5px);
    background: #e05a00;
    box-shadow: 0 8px 35px rgba(255, 107, 0, 0.5);
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }

    .carousel-caption h5 {
        font-size: 32px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    #about h2 {
        font-size: 30px;
    }

    #services .section-title,
    #proyects .section-title,
    #contact .section-title {
        font-size: 32px;
    }

    #about .card img {
        height: 250px;
    }

    .contact-info .fab {
        font-size: 28px;
    }

    .wave-text {
        font-size: 28px;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 0 20px;
        text-align: center;
    }

    .carousel-caption h5 {
        font-size: 24px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }

    .proyec {
        width: 140px;
        height: 140px;
    }

    .wave-text {
        font-size: 22px;
    }
}

 /* ============================================================
       ESTILOS ESPECÍFICOS PARA SUB-SERVICIOS
       ============================================================ */

    .subtitulo {
        color: #E0A041;
        font-weight: 700;
        letter-spacing: 2px;
        display: block;
        text-align: center;
        margin-bottom: 10px;
    }   
    
    /* --- HERO --- */
    .service-hero {
        position: relative;
        height: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .service-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255, 107, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
        z-index: 1;
    }

    .service-hero img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.6;
        animation: zoomIn 8s ease infinite alternate;
    }

    @keyframes zoomIn {
        0% { transform: scale(1); }
        100% { transform: scale(1.1); }
    }

    .service-hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: #fff;
        padding: 0 20px;
    }

    .service-hero-content .icon {
        font-size: 80px;
        color: #E0A041;
        margin-bottom: 20px;
        display: inline-block;
        animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    .service-hero-content h1 {
        font-size: 52px;
        font-weight: 800;
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        margin-bottom: 15px;
        letter-spacing: 2px;
    }

    .service-hero-content .breadcrumb {
        background: none;
        padding: 0;
        justify-content: center;
    }

    .service-hero-content .breadcrumb-item {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
    }

    .service-hero-content .breadcrumb-item a {
        color: #E0A041;
        text-decoration: none;
        transition: color 0.3s ease;
    }

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

    .service-hero-content .breadcrumb-item.active {
        color: #fff;
    }

    .service-hero-content .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(255, 255, 255, 0.4);
    }

    /* --- INTRODUCCIÓN --- */
    .service-intro {
        padding: 60px 0;
        background: #ffffff;
    }

    .service-intro .section-title {
        font-size: 36px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 15px;
        text-align: center;
    }

    .service-intro .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background: #E0A041;
        border-radius: 2px;
    }

    .service-intro .description {
        font-size: 16px;
        line-height: 1.9;
        color: #555;
        margin-bottom: 20px;
        text-align: center;
    }

    /* --- SUBSERVICIOS --- */
    .subservice {
        padding: 60px 0;
    }

    .subservice:nth-child(even) {
        background: #f8f9fa;
    }

    .subservice:nth-child(odd) {
        background: #ffffff;
    }

    .subservice .subservice-content {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .subservice .subservice-content.reverse {
        flex-direction: row-reverse;
    }

    .subservice .text-content {
        flex: 1;
    }

    .subservice .text-content .number {
        font-size: 14px;
        font-weight: 700;
        color: #E0A041;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 10px;
        display: block;
    }

    .subservice .text-content h3 {
        font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 15px;
    }

    .subservice .text-content h3 i {
        color: #E0A041;
        margin-right: 12px;
    }

    .subservice .text-content p {
        font-size: 15px;
        line-height: 1.8;
        color: #555;
        margin-bottom: 15px;
    }

    .subservice .text-content ul {
        list-style: none;
        padding: 0;
        margin-top: 15px;
    }

    .subservice .text-content ul li {
        padding: 8px 0;
        font-size: 14px;
        color: #555;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .subservice .text-content ul li:last-child {
        border-bottom: none;
    }

    .subservice .text-content ul li i {
        color: #E0A041;
        font-size: 18px;
        width: 25px;
    }

    .subservice .image-content {
        flex: 1;
    }

    .subservice .image-content .image-wrapper {
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
        transition: all 0.5s ease;
        position: relative;
    }

    .subservice .image-content .image-wrapper:hover {
        transform: scale(1.02);
        box-shadow: 0 25px 70px rgba(255, 107, 0, 0.15);
    }

    .subservice .image-content .image-wrapper img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        transition: all 0.5s ease;
    }

    .subservice .image-content .image-wrapper:hover img {
        transform: scale(1.05);
    }

    .subservice .image-content .image-wrapper .badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #E0A041;
        color: #fff;
        padding: 8px 20px;
        border-radius: 50px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* --- BOTÓN VOLVER --- */
    .back-button {
        display: inline-block;
        padding: 12px 30px;
        background: #E0A041;
        color: #fff;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
        margin-top: 20px;
    }

    .back-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(255, 107, 0, 0.4);
        color: #fff;
        text-decoration: none;
    }

    .back-button i {
        margin-right: 10px;
    }

    /* --- RESPONSIVE --- */
    @media (max-width: 992px) {
        .subservice .subservice-content {
            flex-direction: column !important;
            gap: 30px;
        }

        .subservice .image-content .image-wrapper img {
            height: 280px;
        }
    }

    @media (max-width: 768px) {
        .service-hero {
            height: 300px;
        }

        .service-hero-content h1 {
            font-size: 32px;
        }

        .service-hero-content .icon {
            font-size: 50px;
        }

        .service-intro .section-title {
            font-size: 28px;
        }

        .subservice .text-content h3 {
            font-size: 22px;
        }

        .subservice .image-content .image-wrapper img {
            height: 220px;
        }
    }

    @media (max-width: 480px) {
        .service-hero {
            height: 250px;
        }

        .service-hero-content h1 {
            font-size: 24px;
        }

        .service-hero-content .icon {
            font-size: 40px;
        }

        .subservice {
            padding: 40px 0;
        }

        .subservice .text-content h3 {
            font-size: 20px;
        }

        .subservice .image-content .image-wrapper img {
            height: 180px;
        }
    }

