/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* Paleta de Colores Base */
    --color-bg-dark: #0A3A4D;
    --color-bg-section-par: #184d65;
    
    /* Colores Principales */
    --color-primary-green: #41A387;
    --color-accent-green: #1d8e4a;
    --color-title-green: #1d8e4a;
    
    /* Colores de Texto */
    --color-text-white: #ffffff;
    --color-text-blue-light: #52a3cc; /* Coincide con --color-azul-claro */
    --color-text-yellow: #da9d21;     /* Coincide con --color-amarillo */

    /* Colores de Fondo (Cards con opacidad) */
    --color-bg-card-blue: #0d4b68;
    --color-bg-card-green: #28655580;
    --color-bg-card-yellow: #da9d2180;
    --color-bg-card-blue-light: #51a3cd80;

    /* Tipografía */
    --font-main: 'Syne', sans-serif;
    
    /* Layout */
    --header-height-desktop: 90px;
    --header-padding: 25px 40px;
    --header-padding-scrolled: 10px 40px;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--color-bg-dark);
    font-family: var(--font-main);
    color: var(--color-text-white);
    line-height: 1.6; /* Mejora de legibilidad general */
}

/* Utilidades de Texto */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Clases específicas de Misión/Visión */
.mision {
    text-align: left;
    color: var(--color-text-blue-light);
}

.vision {
    text-align: right;
    color: var(--color-text-yellow);
}

.site-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* =========================================
   2. ENCABEZADO Y NAVEGACIÓN
   ========================================= */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    z-index: 1000;
    padding: var(--header-padding);
    transition: padding 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav.scrolled {
    padding: var(--header-padding-scrolled);
    background-color: rgba(10, 58, 77, 0.95);
}

.nav-logo img {
    height: 75px;
    width: auto;
    transition: height 0.3s ease;
}

.header-nav.scrolled .nav-logo img {
    height: 25px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--color-primary-green);
}

.menu-toggle {
    display: none; /* Oculto por defecto en desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

#header-placeholder {
    width: 100%;
    height: var(--header-height-desktop);
}

/* =========================================
   3. SECCIONES GENERALES
   ========================================= */
.section {
    padding: 80px 20px;
    width: 100%;
    text-align: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent; 
}

.section:nth-of-type(odd) {
    background-color: var(--color-bg-section-par);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-primary-green);
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--color-title-green);
    text-transform: uppercase;
    text-align: center;
    font-weight: 600;
}

.section p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

.section p.bigger {
    font-size: 1.4rem;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh;
    padding-top: 100px;
    justify-content: flex-end;
    padding-bottom: 150px;
    background-image: url('fondo.jpeg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#hero h1 { 
    color: #ffffff; 
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content {
    margin-top: 40px; 
    max-width: 900px;
    text-align: justify; 
}

.hero-content p {
    margin-bottom: 1.5em; 
    max-width: 100%; 
}

/* =========================================
   5. COMPONENTES: CARDS & BOTONES
   ========================================= */
/* Contenedor Grid */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

.cards-container ul {
    list-style: none;
}

/* Estilos Base Card */
.card {
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.card h3 {
    font-size: 1.3rem;
    margin-top: 15px;
    margin-bottom: 20px;
    color: var(--color-text-blue-light);
    min-height: 2.6rem; 
}

.card-icon {
    font-size: 4rem;
    color: var(--color-primary-green);
    margin-bottom: 10px;
}

/* Variantes de Color para Cards */
.card.green      { background-color: var(--color-bg-card-green); }
.card.yellow     { background-color: var(--color-bg-card-yellow); }
.card.blue-light { background-color: var(--color-bg-card-blue-light); }
.card.blue       { background-color: var(--color-bg-card-blue); }
.card.par        { background-color: var(--color-bg-section-par); }

/* Detalles internos de la card */
.details-wrapper {
    text-align: left;
    padding-top: 10px;
}

.card-detail {
    display: flex;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #f2f2f2;
    align-items: center;
}

.card-detail-center {
    display: flex;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #f2f2f2;
	align-items: center;
	justify-content: center;
}

.detail-icon,
.detail-bullet {
    color: var(--color-accent-green);
    margin-right: 10px;
    margin-top: 5px; /* Alineación visual */
}

/* Botones */
.cta-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: var(--color-primary-green);
    color: var(--color-text-white);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: background .12s ease, transform .12s ease;
}

.cta-btn:hover { 
    background: var(--color-text-blue-light); 
    transform: translateY(-3px); 
    color: #fff;
}

.cta-btn:active { transform: translateY(0); }

.contact-btn {
    background: var(--color-accent-green);
    color: var(--color-bg-dark);
}

/* =========================================
   6. SECCIONES ESPECÍFICAS
   ========================================= */

/* --- SERVICIOS --- */
.list-title {
    font-weight: 700;
    color: var(--color-primary-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 1.1rem;
    list-style: none;
	text-align: center;
}
#servicios .list-label {
    text-align: center;
    margin-bottom: 5px; /* Ajuste visual */
    margin-top: 10px; /* Separación de la lista anterior */
}

/* Layout Desktop Servicios (1-2-1) */
@media (min-width: 961px) {
    #servicios .cards-container.services-layout {
        grid-template-columns: 1fr 2fr 1fr;
        gap: 30px;
    }

    .card-double .double-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: left;
    }

    .card-double .split-lists {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: left;
        margin-top: 10px;
        width: 100%;
    }

    .card-double .list-col:first-child {
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        padding-right: 15px;
    }
}

/* --- CONTACTO --- */
#contacto .contact-row {
    position: relative; 
    align-items: stretch;
    min-height: 120px;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap; 
}

.contact-col {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 20px;
}

.contact-col h3 {
    font-size: 1.4rem;
    color: var(--color-text-white);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-green);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.phone-link i { font-size: 1.4rem; }

.phone-link:hover {
    color: var(--color-primary-green);
    transform: scale(1.05);
}

.contact-logo-watermark {
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 1;
}

.contact-logo-watermark img {
    height: auto;
    width: 150px;
    opacity: 0.15;
    filter: grayscale(100%) brightness(150%);
}

.contact-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- SIEMBRA DIRECTA (Excepciones) --- */
#siembra .cards-container .card.green {
    text-align: left;
}

#siembra .cards-container .card.green h3 {
    text-align: center;
    margin-bottom: 25px;
}

#siembra .cards-container .card.green .siembra-beneficios-list {
    list-style: none; /* Quitamos el marcador original */
    counter-reset: sb-counter;
    padding-left: 25%;
    padding-right: 25%;
    margin-top: 20px;
}

#siembra .cards-container .card.green .siembra-beneficios-list li {
    counter-increment: sb-counter;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    font-weight: 600;
    color: #f2f2f2;
    position: relative;
    padding-left: 2.5rem; /* espacio entre número y texto */
}

/* Números personalizados con fuente Syne */
#siembra .cards-container .card.green .siembra-beneficios-list li::before {
    content: counter(sb-counter) ".";
    position: absolute;
    left: 0;
    top: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: var(--color-text-yellow);
    line-height: 1;
}
/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #1a4a6d;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.site-footer a { color: var(--color-primary-green); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* =========================================
   NUEVA SECCIÓN: PROCESO DE INTELIGENCIA ARTIFICIAL
   ========================================= */

.ai-process-container {
    margin-top: 60px;
    width: 100%;
    max-width: 1000px;
    text-align: left; /* El contenido interno se alinea a la izquierda */
}

/* Título principal de la subsección */
.ai-section-title {
    font-size: 1.8rem;
    color: var(--color-text-yellow); /* Usa el color amarillo/dorado del sitio */
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center; /* Título centrado */
    font-weight: 700;
    letter-spacing: 1px;
}

/* Contenedor de cada paso */
.process-step {
    display: flex;
    align-items: stretch;
    background-color: rgba(13, 75, 104, 0.3); /* Fondo azul oscuro muy sutil, basado en tu paleta */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
}

/* Bloque del número indicador */
.step-number {
    flex: 0 0 80px; /* Ancho fijo para el número */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-bg-dark); /* Número en color oscuro para contraste */
}

/* Variantes de color para los números (usando tus variables) */
.step-number.yellow-bg { background-color: var(--color-text-yellow); }
.step-number.blue-bg   { background-color: var(--color-text-blue-light); }
.step-number.green-bg  { background-color: var(--color-primary-green); }

/* Contenido de texto del paso */
.step-content {
    flex: 1; /* Ocupa el resto del espacio */
    padding: 20px 25px;
    display: flex;
    justify-content: space-between; /* Para separar texto del icono de IA si existe */
    align-items: center;
    gap: 20px;
}

.step-text-block h4 {
    color: var(--color-text-white);
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Colores específicos para los títulos de cada paso */
.yellow-title { color: var(--color-text-yellow) !important; }
.blue-title   { color: var(--color-text-blue-light) !important; }
.green-title  { color: var(--color-primary-green) !important; }

.step-text-block p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    max-width: 700px;
}

/* Contenedor específico para el icono de IA en el paso 2 */
.ai-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-blue-light);
    padding-left: 20px;
    border-left: 1px solid rgba(82, 163, 204, 0.3); /* Separador sutil */
}

.ai-icon-wrapper i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.ai-label {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .process-step {
        flex-direction: column; /* Apilar número sobre contenido */
    }
    
    .step-number {
        flex: 0 0 50px;
        width: 100%;
        font-size: 1.8rem;
    }

    .step-content {
        flex-direction: column; /* Apilar texto sobre icono IA */
        align-items: flex-start;
        padding: 20px;
    }
    
    .ai-icon-wrapper {
        flex-direction: row; /* Icono y texto AI horizontales en móvil */
        gap: 10px;
        margin-top: 15px;
        padding-left: 0;
        border-left: none;
        width: 100%;
        justify-content: flex-start;
    }
    
    .ai-icon-wrapper i {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
}
/* =========================================
   NUEVA SECCIÓN: OTRAS APLICACIONES (DJI MAVIC 3)
   ========================================= */

.other-apps-container {
    margin-top: 80px; /* Separación de la sección anterior */
    width: 100%;
    max-width: 1200px;
    padding-bottom: 40px;
}

/* Subtítulo específico para el modelo del Dron */
.drone-model-title {
    text-align: center;
    color: var(--color-primary-green); /* Verde corporativo */
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: -20px; /* Pegarlo un poco al título principal */
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Grilla para las tarjetas de aplicaciones */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.app-card {
    background-color: var(--color-bg-card); /* Fondo azul oscuro estándar */
    padding: 30px 25px;
    border-radius: 12px;
    border-top: 3px solid var(--color-bg-card); /* Borde invisible inicial */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Efecto hover: sube un poco y marca borde verde arriba */
.app-card:hover {
    transform: translateY(-5px);
    border-top: 3px solid var(--color-primary-green);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Iconos de cada aplicación */
.app-icon {
    font-size: 2rem;
    color: var(--color-primary-green);
    margin-bottom: 20px;
    background: rgba(65, 163, 135, 0.1); /* Fondo verde muy suave */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Icono circular */
}

.app-card h5 {
    font-size: 1.1rem;
    color: var(--color-text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.app-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

#financiacion {
    background-color: var(--color-bg-dark);
    padding: 80px 20px;
}

.financiacion-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    max-width: 1000px; /* Un poco más estrecha para mejorar la legibilidad del texto */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.logos-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

.logos-row img,
.logos-row svg {
    height: 80px; /* Tamaño equilibrado */
    width: auto;
    object-fit: contain;
}

.financiacion-text {
    color: #2c3e50;
    font-family: var(--font-main);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    margin: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}
.bigger{
	font-size: 1.15rem;
}
.financiacion-text strong {
    color: #1d8e4a; /* Color verde corporativo de tu web */
}
/* =========================================
   8. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

/* Tablets y Desktop Pequeño (Max 960px) */
@media (max-width: 960px) {
    /* Header Móvil */
    .header-nav { padding: 15px 20px; }
    .header-nav.scrolled { padding: 10px 20px; }
    
    .nav-menu { display: none; } 
    .menu-toggle { display: block; } 
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-dark);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active li {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-menu.active a {
        display: block;
        padding: 15px;
    }
    
    .nav-logo img { height: 35px; }
    .header-nav.scrolled .nav-logo img { height: 25px; }

    #header-placeholder { height: 0; }
    #hero { padding-top: 60px; }
    
    /* Layout Cards Móvil */
    .cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card h3 { min-height: auto; }

    /* Servicios Móvil */
    .card-double .double-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .card-double .split-lists {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }
    
    .card-double .list-col:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        padding-right: 0;
    }
}

/* Móviles Pequeños (Max 768px) */
@media (max-width: 768px) {
    /* Contacto Móvil */
    .contact-divider { display: none; }
    .contact-row { gap: 30px; }
    .phone-link { font-size: 1.5rem; }
    

	#siembra .cards-container .card.green .siembra-beneficios-list {
        padding-left: 20px; /* Reducción de padding para pantallas pequeñas */
		padding-right: 20px
    }
	
	.other-apps-container {
        margin-top: 60px;
    }
    .apps-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
    .app-card {
        align-items: center;
        text-align: center;
    }
}

/* Desktop Only Helpers (para ocultar elementos de móvil) */
@media (min-width: 769px) {
    .contact-divider { display: none; } /* Oculto porque usas el logo */
}
@media (max-width: 768px) {
    .financiacion-card {
        padding: 30px 20px;
    }
    
    .logos-row {
        gap: 20px;
    }

    .logos-row img {
        height: 50px;
    }

    .financiacion-text {
        font-size: 0.95rem;
    }
	
	.bigger{
		font-size: 1.05rem;
	}
}