/* ===== VARIABLES ===== */
:root {
    --azul-oscuro: #002060;
    --amarillo: #E6B546;
    --blanco: #ffffff;
    --gris: #7c7c7c;
    --transition: all 0.4s ease;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION TITLE INTERNA ===== */
.sect_title_interna{
	background-image: url(../../../img/fondo/banner_internas.webp);
	background-repeat: no-repeat;
	background-position: left;
	background-size: 100% 1000%;
    padding: 50px 0;
	position: relative;
	z-index: 1;
	animation: bg 25s infinite linear alternate;
}

@keyframes bg {
	from{
		background-size: 100% 1000%;
	}

	to{
		background-size: 150% 1500%;
		background-position: right;
	}
}

.sect_title_interna::before{
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #000;
	opacity: .5;
	z-index: -1;
}

.h2_title_interna {
    color: var(--amarillo);
    font-weight: 800;
    font-size: 2.5rem;
    margin: 0;
}

.nav_internas {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.list_nav_internas {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list_nav_internas > li {
    color: var(--blanco);
    font-weight: 600;
    font-size: 15px;
}

.list_nav_internas > li:last-child {
    color: var(--amarillo);
    font-size: 16px;
    font-weight: 700;
}

.list_nav_internas > li > a {
    font-weight: 600;
    color: var(--blanco);
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.list_nav_internas > li > a:hover {
    color: var(--amarillo);
}

/* ============================================
   SECCIONES DE SERVICIOS PRINCIPALES
   ============================================ */

.services-section {
    padding: 30px 0;
    overflow: hidden;
    background-color: var(--azul-oscuro);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 1024px) {
    .services-container {
        padding: 0 30px;
    }
}

/* ============================================
   LAYOUT DE CADA SERVICIO
   ============================================ */

.service-item {
    display: grid;
    gap: 50px;
    align-items: center;
}

@media (min-width: 1024px) {
    .service-item {
        grid-template-columns: 1fr 1fr;
    }
}

/* Para servicios con orden invertido en desktop */
.service-item--reversed .service-content {
    order: 2;
}

.service-item--reversed .service-image-wrapper {
    order: 1;
}

@media (min-width: 1024px) {
    .service-item--reversed .service-content {
        order: 1;
    }
    
    .service-item--reversed .service-image-wrapper {
        order: 2;
    }
}

/* ============================================
   COMPONENTES DE IMAGEN DE SERVICIOS
   ============================================ */

.service-image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

/* ============================================
   CONTENIDO DE SERVICIOS
   ============================================ */

.service-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--amarillo);
    line-height: 1.2;
}

.service-description {
    color: #e5e7eb;
    line-height: 1.625;
    font-size: 18px;
}

/* ============================================
   LISTA DE CARACTERÍSTICAS
   ============================================ */

.service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    color: var(--amarillo);
    font-weight: 700;
    font-size: 20px;
}
.feature-text {
    color: var(--blanco);
}

/* ============================================
   BOTONES Y ENLACES DE SERVICIOS
   ============================================ */

.service-link {
    color: var(--amarillo);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.service-link:hover {
    gap: 16px;
    text-decoration: none;
}

.link-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.service-link:hover .link-arrow {
    transform: translateX(4px);
     text-decoration: none;
}

.service-button {
    background-color: var(--amarillo);
    color: var(--azul-oscuro);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.service-button:hover {
    background-color: #d4a235;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ============================================
   SECCIÓN DE SECTORES
   ============================================ */

.sectors-section {
    background-image: url(../../../../public/img/fondo/banner_contacto.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--blanco);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.sectors-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 96, 0.85);
    z-index: -1;
}

.sectors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .sectors-container {
        padding: 0 40px;
    }
}

.sectors-header {
    text-align: center;
    margin-bottom: 60px;
}

.sectors-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.sectors-subtitle {
    color: rgba(255, 255, 255, 0.7);
    max-width: 672px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* ============================================
   GRID DE SECTORES
   ============================================ */

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (min-width: 768px) {
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   ITEMS DE SECTOR
   ============================================ */

.sector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.sector-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.1);
    /* border-radius: 16px; */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.sector-item:hover .sector-icon-wrapper {
    background-color: var(--amarillo);
    color: var(--azul-oscuro);
}

.sector-icon {
    font-size: 36px;
}

.sector-name {
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

/* ============================================
   SECCIÓN CTA FINAL CON IMAGEN DE FONDO
   ============================================ */

.cta-section {
    background-image: url(../../../../public/img/fondo/banner_contacto.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 80px 0;
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 32, 96, 0.85);
    z-index: -1;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--blanco);
    line-height: 1.2;
}

.cta-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

/* ============================================
   BOTONES CTA
   ============================================ */

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.cta-button {
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button--primary {
    background-color: var(--amarillo);
    color: var(--azul-oscuro);
}

.cta-button--primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background-color: #d4a235;
}

.cta-button--secondary {
    border-color: var(--blanco);
    color: var(--blanco);
    background-color: transparent;
}

.cta-button--secondary:hover {
    background-color: var(--blanco);
    color: var(--azul-oscuro);
    border-color: var(--blanco);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .services-section {
        padding: 40px 0;
    }
    
    .service-image-wrapper {
        height: 350px;
    }
    
    .service-title {
        font-size: 26px;
    }
    
    .sectors-title {
        font-size: 30px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .sectors-section,
    .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .sect_title_interna {
        padding: 30px 0;
    }

    .h2_title_interna {
        display: none;
    }

    .nav_internas {
        justify-content: flex-end;
    }

    .list_nav_internas {
        text-align: right;
    }
    
    .services-section {
        padding: 50px 0;
    }
    
    .service-image-wrapper {
        height: 300px;
    }
    
    .service-title {
        font-size: 24px;
    }
    
    .service-description {
        font-size: 16px;
    }
    
    .sectors-title {
        font-size: 26px;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 575px) {
    .h2_title_interna {
        font-size: 1.75rem;
    }

    .list_nav_internas > li {
        font-size: 13px;
    }

    .list_nav_internas > li:last-child {
        font-size: 14px;
    }
    
    .service-item {
        gap: 32px;
    }
    
    .services-container {
        padding: 0 12px;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .sector-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .sector-icon {
        font-size: 32px;
    }
    
    .sector-name {
        font-size: 16px;
    }
    
    .service-title {
        font-size: 22px;
    }
    
    .sectors-title,
    .cta-title {
        font-size: 22px;
    }
    
    .sectors-subtitle,
    .cta-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);;
        gap: 18px;
    }
    
    .service-item {
        gap: 32px;
    }
    
    .services-container {
        padding: 0 15px;
    }
}