/* Variables de colores */
:root {
    --color-verde: #7FA42A;
    --color-verde-medio: #4A5C1F;
    --color-verde-oscuro: #1C380F;
    
    --color-amarillo: #EBC315;
    

    --color-blanco: #FFFFFF;
    --color-gris-oscuro: #2D2D2D;
    --color-gris-claro: #F5F5F5;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--color-gris-oscuro);
    background-color: var(--color-blanco);
}
 

/* Contenedor base */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(135deg,  var(--color-verde-oscuro) 13%, var(--color-verde-oscuro) 30%,  var(--color-verde-medio) 83%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-amarillo);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.navbar-logo h1 {
    color: var(--color-amarillo);
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--color-amarillo);
    border-bottom-color: var(--color-amarillo);
}

/* DROPDOWN DE SERVICIOS */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--color-verde-oscuro) 0%, var(--color-verde-medio) 100%);
    list-style: none;
    min-width: 220px;
    border-radius: 5px;
    margin-top: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: block;
    color: var(--color-blanco);
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-link:hover {
    background-color: rgba(172, 186, 17, 0.3);
    color: var(--color-amarillo);
    padding-left: 25px;
}

/* DROPDOWN DE SERVICIOS */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(135deg, var(--color-verde-oscuro) 0%, var(--color-verde-medio) 100%);
    list-style: none;
    min-width: 220px;
    border-radius: 5px;
    margin-top: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

.dropdown-link {
    display: block;
    color: var(--color-blanco);
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-link:hover {
    background-color: rgba(172, 186, 17, 0.3);
    color: var(--color-amarillo);
    padding-left: 25px;
}

/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(135deg,  var(--color-verde-oscuro) 0%, var(--color-verde-medio) 100%);
    color: var(--color-blanco);
    padding: 100px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}
 
.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--color-amarillo);
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 30px;
    color:  white; 
}

/* SECCIONES */
.section {
    padding: 80px 20px;
    background-color: var(--color-blanco);
    font-weight: 400;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
.section:nth-child(even) { /*COLOR DE FONDO DE NOSOTROS*/
    background-color: #fff5ca83;
}

.section h2 {
    font-size: 40px;
    color: var(--color-verde-oscuro);
    margin-bottom: 30px;
    text-align: center;
}

/* LAYOUT DE DOS COLUMNAS PARA NOSOTROS */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 30px;    position: relative;
    z-index: 1;}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(148, 140, 25, 0.1);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.about-image img:hover {
    transform: scale(1.15);
}
/* DECORACIÓN DE LÍNEAS CIRCULARES EN NOSOTROS */
.nosotros-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#nosotros {
    position: relative;
}

#servicios {
    position: relative;
    background-color: #d8eba4d5;
}

/* DECORACIÓN DE LÍNEAS CIRCULARES EN SERVICIOS */
.servicios-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.section p {
    font-size: 16px;
    color: black;
    margin-bottom: 20px;
    line-height: 1.8;
     text-align: justify;
}

/* TARJETAS DE SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--color-blanco);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    border: 2px solid transparent;
    grid-column: span 2;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--color-blanco);
}

/* Sombras de color para cada tarjeta de servicios en hover */
.service-card:nth-child(1):hover {
    box-shadow: 0 10px 10px rgb(255, 196, 0, 0.2);
}

.service-card:nth-child(2):hover {
    box-shadow: 0 10px 10px rgb(113, 190, 97, 0.3);
}

.service-card:nth-child(3):hover {
    box-shadow: 0 10px 10px rgb(255, 196, 0, 0.2);
}

.service-card:nth-child(4):hover {
    box-shadow: 0 10px 10px rgb(113, 190, 97, 0.3);
}

.service-card:nth-child(5):hover {
    box-shadow: 0 10px 10px rgb(255, 196, 0, 0.2);
}

/* COLORES DECORATIVOS PARA CADA CARD EBC315 7FA42A */
.service-card:nth-child(1) {
    border-top: 6px solid #EBC315;
    
}

.service-card:nth-child(2){
    border-top: 6px solid #7FA42A;
}
.service-card:nth-child(3) {
    border-top: 6px solid #EBC315;
}

.service-card:nth-child(4) {
    border-top: 6px solid #7FA42A;
    /*grid-column: 2 / span 2;*/
}

.service-card:nth-child(5) {
    border-top: 6px solid #EBC315;
    /*grid-column: 4 / span 2;*/
}

.service-card:nth-child(6) {
    border-top: 6px solid #7FA42A;
    /*grid-column: 6 / span 2;*/
}

.service-card:nth-child(7) {
    border-top: 6px solid #7FA42A; 
    grid-column: 3 / span 2;
}

.service-card h3 {
    color: var(--color-verde-oscuro);
    margin-bottom: 10px;
    font-size: 20px;
}

.service-card p {
    color: var(--color-gris-oscuro);
}

/* ESTILOS PARA STATS EN CARDS */
.card-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.stat-item {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-verde-oscuro);
    padding: 6px 0;
    border-left: 3px solid var(--color-verde);
    padding-left: 12px;
    line-height: 1.4;
}

/* GRID DE CLIENTES */
/* CLIENTES SECTION */
#clientes {
    position: relative;
    background-color: #fbfdfa;
}

.clients-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.client-card {
    background: var(--color-blanco);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    cursor: pointer;
    border: 2px solid transparent;
}

.client-card img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.client-card:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 15px 40px rgba(172, 186, 17, 0.4);
    border-color: var(--color-verde);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(172, 186, 17, 0.05));
}

.client-card:hover img {
    filter: brightness(1.15) saturate(1.2) drop-shadow(0 5px 15px rgba(172, 186, 17, 0.4));
    transform: scale(1.1) rotate(-2deg);
}

/* SECCION ADMINISTRACION */
.admin-section {
    background: linear-gradient(135deg, #1C380F 0%, #2D4A15 100%) !important;
    position: relative;
}

.admin-section:nth-child(even) {
    background: linear-gradient(135deg, #1C380F 0%, #2D4A15 100%) !important;
}

.admin-section h2 {
    color: var(--color-amarillo);
}

.admin-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.admin-container {
    position: relative;
    z-index: 1;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 60px;
}

.admin-image {
    display: flex;
    justify-content: center;
}

.admin-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.admin-image img {
    max-width:80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.admin-image img:hover {
    transform: scale(1.15);
}

.managed-by-card {
    display: block;
    width: 100%;
    max-width: 350px;
    padding: 15px 20px;
    background:  whitesmoke; 
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-gris-oscuro);
}

.managed-by-card:hover { 
    transform: scale(1.05);
    /*box-shadow: 0 5px 10px rgba(245, 207, 71);*/
}

.managed-by-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.managed-by-card strong {
    color: var(--color-verde);
}


.admin-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 25px;
    z-index: 1;
}

.admin-lines {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    z-index: 0;
    pointer-events: none;
}

.admin-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    /*border-top: 3px solid #F7C50F;*/
    transition: all 0.3s ease;
}

.admin-item:hover {
    transform: translateY(-10px);
    background: var(--color-blanco);
    box-shadow: 0 10px 30px rgb(0, 0, 0);
}

.admin-item-01,
.admin-item-03 {
    grid-column: 1;
}

.admin-item-02,
.admin-item-04 {
    grid-column: 2;
}

.admin-number {
    font-size: 32px;
    font-weight: 900;
    color: #F7C50F;
    margin-bottom: 10px;
    line-height: 1;
}

.admin-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.admin-item h3 {
    color: var(--color-verde-oscuro);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0;
}

/* MARKETING DIGITAL SECTION */
.marketing-section {
    background: linear-gradient(135deg, var(--color-amarillo) 0%, rgba(247, 197, 15, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.marketing-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.marketing-section h2 {
    color: var(--color-blanco);
}

.marketing-container {
    position: relative;
    z-index: 1;
}

.marketing-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;    
}

.marketing-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.marketing-image {
    display: flex;
    justify-content: center;
}

.marketing-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.marketing-image img:hover {
    transform: scale(1.15);
}

.marketing-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    z-index: 1;
}

.marketing-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    /*border-top: 3px solid var(--color-verde);*/
    transition: all 0.3s ease;
}

.marketing-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.marketing-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-amarillo);
    margin-bottom: 10px;
    line-height: 1;
}

.marketing-item h3 {
    color: var(--color-verde-oscuro);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.marketing-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.keyword {
    display: inline-block;
    background: var(--color-amarillo);
    color: var(--color-verde-oscuro);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* PRODUCTION SECTION */
.production-section {
    background: linear-gradient(135deg, var(--color-verde) 0%, rgba(172, 186, 17, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.production-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.production-section h2 {
    color: var(--color-blanco);
}

.production-container {
    position: relative;
    z-index: 1;
}

.production-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;
}

.production-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.production-image {
    display: flex;
    justify-content: center;
}

.production-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.production-image img:hover {
    transform: scale(1.15);
}

.production-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    z-index: 1;
}

.production-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; 
    transition: all 0.3s ease;
}

.production-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.production-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-verde);
    margin-bottom: 10px;
    line-height: 1;
}

.production-item h3 {
    color: var(--color-verde-oscuro);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.production-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

/* RRHH SECTION */
.rrhh-section {
    background: linear-gradient(135deg, var(--color-verde-oscuro) 0%, rgba(28, 56, 15, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.rrhh-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.rrhh-section h2 {
    color: var(--color-blanco);
}

.rrhh-container {
    position: relative;
    z-index: 1;
}

.rrhh-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;
}

.rrhh-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.rrhh-image {
    display: flex;
    justify-content: center;
}

.rrhh-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.rrhh-image img:hover {
    transform: scale(1.15);
}

.rrhh-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    z-index: 1;
}

.rrhh-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; 
    transition: all 0.3s ease;
}

.rrhh-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rrhh-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-verde-oscuro);
    margin-bottom: 10px;
    line-height: 1;
}

.rrhh-item h3 {
    color: var(--color-verde-oscuro);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.rrhh-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0;
}

/* PROGRAMMING SECTION */
.programming-section {
    background: linear-gradient(135deg, #8e914f 0%, rgba(141, 151, 54, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.programming-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.programming-section h2 {
    color: var(--color-blanco);
}

.programming-container {
    position: relative;
    z-index: 1;
}

.programming-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;
}

.programming-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.programming-image {
    display: flex;
    justify-content: center;
}

.programming-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.programming-image img:hover {
    transform: scale(1.15);
}

.programming-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    z-index: 1;
}

.programming-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; 
    transition: all 0.3s ease;
}

.programming-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.programming-number {
    font-size: 32px;
    font-weight: 900;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1;
}

.programming-item h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.programming-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0;
}



/* redestele SECTION */
.redestele-section {
    background: linear-gradient(135deg, var(--color-verde-oscuro) 0%, rgba(28, 56, 15, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
}

.redestele-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.redestele-section h2 {
    color: var(--color-blanco);
}

.redestele-container {
    position: relative;
    z-index: 1;
}

.redestele-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;
}

.redestele-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.redestele-image {
    display: flex;
    justify-content: center;
}

.redestele-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.redestele-image img:hover {
    transform: scale(1.15);
}

.redestele-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    z-index: 1;
}

.redestele-item {
    position: relative;
    z-index: 1;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px; 
    transition: all 0.3s ease;
}

.redestele-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.redestele-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-verde-oscuro);
    margin-bottom: 10px;
    line-height: 1;
}

.redestele-item h3 {
    color: var(--color-verde-oscuro);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}

.redestele-item p {
    font-size: 14px;
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    margin: 0;
}

/* CANALTV SECTION */
.canaltv-section {
    background: linear-gradient(135deg, var(--color-amarillo) 0%, rgba(247, 197, 15, 0.9) 100%);
    color: var(--color-blanco);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    scroll-margin-top: 70px;
    display: grid;
    align-items: center;
}

.canaltv-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.canaltv-section h2 {
    color: var(--color-blanco);
}

.canaltv-container {
    position: relative;
    z-index: 1;
}

.canaltv-content {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 3px;
    align-items: flex-start;
    margin-top: 40px;    
}

.canaltv-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.canaltv-image {
    display: flex;
    justify-content: center;
}

.canaltv-image img {
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--color-blanco);
}

.canaltv-image img:hover {
    transform: scale(1.15);
}

.canaltv-services {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 25px;
    z-index: 1;
}

.canaltv-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 8px;
    position: relative;
    padding-left: 70px;
    transition: all 0.3s ease;
}

.canaltv-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
}

.canaltv-number {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--color-amarillo);
}

.canaltv-item h3 {
    color: var(--color-gris-oscuro);
    margin-bottom: 10px;
    font-size: 16px;
}

.canaltv-item p {
    color: var(--color-gris-oscuro);
    font-size: 14px;
    line-height: 1.6;
}

/* HERRAMIENTAS DE IA */
#herramientas{
    position: relative;
    scroll-margin-top: 70px;
    min-height: 100vh;
}

.section.tools-section {
    background: var(--color-blanco);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    scroll-margin-top: 70px;    
    display: grid;
    align-items: center;
}

.tools-container {
    position: relative;
    z-index: 1;
}

.tools-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tools-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center !important;
    font-size: 20px !important;
    color: var(--color-verde-oscuro) !important;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 35px;
    align-items: stretch;
    margin-top: 50px;
}

.tool-card {
    min-height: 150px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: var(--color-blanco);
    border-top: 6px solid #0B3D5C;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 2;
}

.tool-card-gemini {
    border-top-color: #EBC315;
}

.tool-card-claude {
    border-top-color: #C65D2E;
}

.tool-card-codex {
    border-top-color: rgb(40, 131, 206);
    grid-column: 2 / span 2;
}

.tool-card-copilot {
    border-top-color: #7B2CBF;
    grid-column: 4 / span 2;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(28, 56, 15, 0.2);
}

.tool-card-chatgpt:hover {
    box-shadow: 0 12px 24px rgba(11, 61, 92, 0.28);
}

.tool-card-gemini:hover {
    box-shadow: 0 12px 24px rgba(235, 195, 21, 0.28);
}

.tool-card-claude:hover {
    box-shadow: 0 12px 24px rgba(198, 93, 46, 0.25);
}

.tool-card-codex:hover {
    box-shadow: 0 12px 24px rgba(40, 131, 206, 0.25);
}

.tool-card-copilot:hover {
    box-shadow: 0 12px 24px rgba(123, 44, 191, 0.25);
}

.tool-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.tool-name {
    width: 100%;
    max-width: 250px;
    height: 35px;
    object-fit: contain;
}

/* FORMULARIO DE CONTACTO */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--color-verde);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-amarillo);
    box-shadow: 0 0 10px rgba(172, 186, 17, 0.3);
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background:  var(--color-amarillo) 100% ;
    color: var(--color-verde-oscuro);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(172, 186, 17, 0.4);
}

.contact-form .btn-primary {
    align-self: center;
}

/* CONTACTO SECTION */
#contactanos {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 30px;
}
 

.contact-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.contact-container {
    position: relative;
    z-index: 1;
    text-align: center !important;
}

#contactanos p {
    text-align: center !important;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgb(70, 172, 70) 70%;
    color: var(--color-blanco);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 10px rgb(30, 255, 0, 0.3);
}

.contact-button:hover .contact-icon {
    transform: rotate(10deg) scale(1.2);
}

 

/* EQUIPO SECTION */
#Equipo {
    position: relative;
    scroll-margin-top: 60px;
    min-height: 100vh;
}

.team-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.team-member:nth-child(1) {
    grid-column: 1 / span 2;
}

.team-member:nth-child(2) {
    grid-column: 3 / span 2;
}

.team-member:nth-child(3) {
    grid-column: 5 / span 2;
}

.team-member:nth-child(4) {
    grid-column: 2 / span 2;
}

.team-member:nth-child(5) {
    grid-column: 4 / span 2;
}

.team-member {
    background: var(--color-blanco);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card {
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 10px 30px rgba(172, 186, 17, 0.3);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--color-verde);
}

.team-member h3 {
    color: var(--color-verde-oscuro);
    font-size: 20px;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.team-member p {
    color: var(--color-amarillo);
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: 500;
    text-align: center;
}

.view-more {
    display: inline-block;
    background: rgb(211, 189, 90);
    color: var(--color-blanco);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.team-card:hover .view-more {
    transform: scale(1.2);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

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

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-blanco);
    padding: 50px;
    border-radius: 10px;
    max-width: 850px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
}

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

.modal-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-verde);
    display: block;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: var(--color-verde-oscuro);
    text-align: center;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.modal-role {
    text-align: center;
    color: var(--color-amarillo);
    font-weight: 600;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.modal-bio {
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}


.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--color-gris-oscuro);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--color-verde);
}

/* IMAGE MODAL (LIGHTBOX) */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: pointer;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    color: var(--color-blanco);
    cursor: pointer;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: var(--color-amarillo);
}

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

/* FOOTER */
.footer {
    /*background: linear-gradient(35deg, #546d1b 50%, #aa8e0f 100%);*/   
    background: linear-gradient(135deg, var(--color-verde-medio) 20%, var(--color-verde-oscuro) 80%);
    color: var(--color-blanco);
    text-align: center;
    padding: 25px 20px;
    margin-top: 0;

}

.footer p {
    margin: 0;
    color: var(--color-blanco);
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
    body.menu-open {
        overflow: hidden;
    }

    .navbar-container {
        height: 64px;
        padding: 0 16px;
        justify-content: flex-start;
        gap: 12px;
    }

    .nav-toggle {
        display: flex;
        order: -1;
    }

    .nav-toggle:focus-visible {
        outline: 2px solid var(--color-blanco);
        outline-offset: 2px;
    }

    .navbar-logo {
        min-width: 0;
    }

    .logo-img {
        max-width: 190px;
        height: 44px;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        left: 0;
        width: min(86vw, 330px);
        max-height: calc(100vh - 64px);
        max-height: calc(100dvh - 64px);
        padding: 14px 16px 24px;
        flex-direction: column;
        gap: 4px;
        overflow-y: auto;
        background: linear-gradient(160deg, var(--color-verde-oscuro), var(--color-verde-medio));
        box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.28);
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s ease, visibility 0.28s ease;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 11px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        text-align: left;
    }

    .nav-link:hover {
        border-bottom-color: var(--color-amarillo);
    }

    .services-toggle {
        position: relative;
        padding-right: 40px;
    }

    .services-toggle::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 14px;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--color-amarillo);
        border-bottom: 2px solid var(--color-amarillo);
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.25s ease;
    }

    .nav-dropdown.submenu-open .services-toggle::after {
        transform: translateY(-30%) rotate(225deg);
    }

    .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        position: static;
        display: flex;
        flex-direction: column;
        min-width: 0;
        max-height: 0;
        margin: 0;
        padding: 0 0 0 14px;
        gap: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease, visibility 0.3s ease;
    }

    .nav-dropdown.submenu-open .dropdown-menu,
    .nav-dropdown.submenu-open:hover .dropdown-menu {
        max-height: 420px;
        padding: 4px 0 6px 14px;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-link {
        padding: 8px 10px;
        font-size: 13px;
        border-left: 2px solid rgba(235, 195, 21, 0.45);
    }

    .dropdown-link:hover {
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    main > section[id] {
        scroll-margin-top: 64px !important;
    }

    .section {
        padding: 60px 18px;
    }

    .section h2 {
        margin-bottom: 24px;
        font-size: 32px;
        line-height: 1.2;
    }

    .section p {
        text-align: left;
    }

    .hero {
        min-height: calc(100vh - 64px);
        min-height: calc(100svh - 64px);
        padding: 70px 20px;
    }

    .hero-content h2 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 18px;
    }

    .about-content,
    .admin-content-wrapper,
    .marketing-content-wrapper,
    .production-content-wrapper,
    .rrhh-content-wrapper,
    .programming-content-wrapper,
    .redestele-content-wrapper,
    .canaltv-content-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        margin-top: 30px;
    }

    .admin-services,
    .marketing-services,
    .production-services,
    .rrhh-services,
    .programming-services,
    .redestele-services,
    .canaltv-services {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .admin-item-01,
    .admin-item-02,
    .admin-item-03,
    .admin-item-04 {
        grid-column: 1;
    }

    .admin-image img,
    .marketing-image img,
    .production-image img,
    .rrhh-image img,
    .programming-image img,
    .redestele-image img,
    .canaltv-image img {
        width: 100%;
        max-width: 260px;
    }

    .admin-image img:hover,
    .marketing-image img:hover,
    .production-image img:hover,
    .rrhh-image img:hover,
    .programming-image img:hover,
    .redestele-image img:hover,
    .canaltv-image img:hover {
        transform: scale(1.04);
    }

    .services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 35px;
    }

    .service-card,
    .service-card:nth-child(7) {
        grid-column: 1 !important;
        padding: 24px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .tool-card {
        grid-column: auto;
    }

    .tool-card {
        min-height: 270px;
        padding: 28px 20px;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 35px;
    }

    .team-member:nth-child(n) {
        grid-column: auto;
    }

    .clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    #Equipo,
    #herramientas,
    .canaltv-section {
        min-height: auto;
        scroll-margin-top: 64px;
    }

    #contactanos {
        padding: 90px 20px;
    }

    .contact-button {
        padding: 15px 26px;
    }

    .contact-form {
        width: 100%;
        padding: 0;
    }

    .modal-content {
        width: calc(100% - 30px);
        max-height: calc(100vh - 30px);
        overflow-y: auto;
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        max-width: 165px;
        height: 40px;
    }

    .hero-content h2 {
        font-size: 27px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section {
        padding: 48px 16px;
    }

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

    .tools-intro {
        font-size: 17px !important;
    }

    .tools-grid,
    .team-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 32px;
    }

    .tool-card {
        min-height: 250px;
    }

    .admin-item,
    .marketing-item,
    .production-item,
    .rrhh-item,
    .programming-item,
    .redestele-item,
    .canaltv-item {
        padding: 22px;
    }

    .canaltv-item {
        padding-left: 62px;
    }

    .canaltv-number {
        left: 16px;
    }

    .managed-by-card {
        max-width: 100%;
    }

    .clients-grid {
        gap: 12px;
    }

    .client-card {
        min-height: 135px;
        padding: 15px;
    }

    .contact-button {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
