/* ==================== RESET Y VARIABLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS para Pag. Web */
:root {
    /* Colores principales */
    --primary-color: #1a5f4a;
    --primary-light: #2a8a6a;
    --primary-dark: #0d3b2a;
    --secondary-color: #ff6b35;
    --accent-color: #ff6b35;
    
    /* Colores neutros */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #212529;
    
    /* Colores de estado */
    --success: #76c3be;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #d7d649;
    
    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Bordes */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-color: #dee2e6;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Tipografía */
    --font-family-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-mono: 'Courier New', Courier, monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --container-max-width: 1200px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==================== ESTILOS GENERALES ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    color: #333333;
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

/* Párrafos */
p {
    margin-bottom: var(--spacing-sm);
    color: #555555;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== BOTONES ==================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 8px;
    font-family: var(--font-family-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--black);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-service {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
    width: 100%;
    margin-top: var(--spacing-md);
}

.btn-service:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn i {
    margin-right: var(--spacing-xs);
}

/* ==================== NAVEGACIÓN / HEADER ==================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar {
    padding: 1rem 0;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: var(--font-family-sans);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.logo-text {
    display: none;
}

/* Estilo para imagen de logo proporcionada por el usuario */
.logo-image {
    width: 80px;
    height: 55px;
    object-fit: contain;
    border-radius: 6px;
    display: inline-block;
}

/* Menú principal */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin: 0 auto 0 3rem;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.nav-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Redes sociales en header */
.nav-socials {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.nav-socials a {
    color: var(--dark-gray);
    font-size: 1.3rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-socials a:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ==================== HERO / INICIO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 6rem var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 1;
    color: #ffffff;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.hero-cta .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-cta .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta .btn-secondary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.hero-cta .btn-secondary:hover {
    background-color: #e55a28;
    border-color: #e55a28;
}

/* Ventajas en hero */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark-gray);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: block;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.95rem;
    color: #555555;
}

/* ==================== SERVICIOS ==================== */
.servicios {
    padding: 5rem var(--spacing-md);
    background-color: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: #1a1a1a;
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.service-card p {
    flex: 1;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    color: #555555;
}

.service-card .btn-service {
    margin-top: auto;
}

/* ==================== SOBRE NOSOTROS ==================== */
.nosotros {
    padding: 5rem var(--spacing-md);
    /* Fondo sutil usando el verde de la marca */
    background: linear-gradient(135deg, rgba(26,95,74,0.06) 0%, rgba(255,255,255,1) 100%);
    border-top: 6px solid var(--primary-color);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.nosotros-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    font-weight: 800;
}

.nosotros-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: #555555;
}

/* Para el subtítulo en la sección Contactos (texto: "¿Listo para transformar tu tecnología? Envía tu solicitud") */
.contacto .section-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: #555555;
    font-size: 0.95rem;
}

/* Imagen placeholder */
.placeholder-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.1));
}

/* Logo pequeño para la sección "Sobre Nosotros" */
.about-logo {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}

/* ==================== CONTACTO ==================== */
.contacto {
    padding: 5rem var(--spacing-md);
    background: linear-gradient(135deg, #f8f9fa, var(--light-color));
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Formulario */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(13, 59, 42, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-actions .btn {
    flex: 1;
}

/* Feedback message */
.feedback-message {
    padding: var(--spacing-md);
    border-radius: 6px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.feedback-message.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.feedback-message.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* Info de contacto */
.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;
}

/* Negrita y color verde para los labels dentro de la información de contacto */
.contact-info .info-item strong {
    color: var(--primary-color);
    font-weight: 700;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
}

.info-item strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

/* ==================== PIE DE PÁGINA ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem var(--spacing-md) 1rem;
    font-size: 1.03rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: none;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: var(--white);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Redes sociales en footer */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-bottom p {
    color: var(--white);
    font-size: 18px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    /* Variables */
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    /* Header responsive */
    .navbar-logo {
        gap: var(--spacing-xs);
    }

    .logo-text {
        display: inline;
        font-size: 1.2rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem var(--spacing-md);
        color: var(--text-color);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:focus {
        background-color: var(--light-color);
    }

    .menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-socials {
        display: none;
    }

    /* Hero responsive */
    .hero {
        padding: 3rem var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Secciones */
    .servicios,
    .contacto,
    .nosotros {
        padding: 3rem var(--spacing-md);
    }

    .section-title {
        font-size: 2rem;
    }

    /* Sobre nosotros */
    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    /* Contacto */
    .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-features {
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .hero-cta .btn {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}

/* ==================== PRINT ==================== */
@media print {
    .header,
    .hero-cta,
    .footer,
    .menu-toggle,
    .nav-socials {
        display: none;
    }

    body {
        color: black;
    }

    .btn {
        border: 1px solid #000;
        color: #000;
    }
}
