/*
Theme Name: Agentica Solutions
Theme URI: https://agenticasolutions.com/
Author: Agentica Solutions
Author URI: https://agenticasolutions.com/
Description: Tema moderno y profesional para Agentica Solutions - Especialistas en agentes de IA para peque���as empresas
Version: 2.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agentica-solutions
*/

/* Variables de colores de marca */
:root {
    --primary-orange: #ff6a3d;
    --secondary-orange: #ffc371;
    --accent-pink: #ff2d7a;
    --dark-bg: #ffffff;              /* CAMBIADO: fondo blanco */
    --text-light: #111213;           /* CAMBIADO: texto negro */
    --text-gray: #555555;            /* CAMBIADO: gris oscuro para contraste */
    --gradient-primary: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    --gradient-secondary: linear-gradient(135deg, var(--accent-pink), var(--primary-orange));
    --shadow-light: 0 4px 20px rgba(255, 106, 61, 0.15);
    --shadow-heavy: 0 8px 40px rgba(255, 106, 61, 0.25);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);  /* CAMBIADO: header blanco */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 106, 61, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.nav-logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 30% 70%, rgba(255, 106, 61, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 45, 122, 0.08) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 106, 61, 0.1);
    border: 1px solid rgba(255, 106, 61, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--primary-orange);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: white;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 106, 61, 0.05);   /* CAMBIADO: fondo claro visible sobre blanco */
    border: 1px solid rgba(255, 106, 61, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    max-width: 350px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.card-content .message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    background: rgba(255, 106, 61, 0.08);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 106, 61, 0.2);
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, transparent, rgba(255, 106, 61, 0.04));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f9f9f9;             /* CAMBIADO: gris muy claro visible sobre blanco */
    border: 1px solid rgba(255, 106, 61, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: var(--shadow-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card > p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--primary-orange);
    font-size: 0.8rem;
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-text > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.benefits-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-orange);
    min-width: 80px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.benefits-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-card {
    background: #f9f9f9;             /* CAMBIADO: gris muy claro */
    border: 1px solid rgba(255, 106, 61, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.benefits-card:hover {
    border-color: var(--primary-orange);
    transform: translateX(10px);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.benefits-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.benefits-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(255, 106, 61, 0.04), rgba(255, 45, 122, 0.04));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-form {
    background: #f9f9f9;             /* CAMBIADO: gris muy claro */
    border: 1px solid rgba(255, 106, 61, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 106, 61, 0.3);
    border-radius: 8px;
    background: #ffffff;             /* CAMBIADO: fondo blanco */
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: #f4f4f4;             /* CAMBIADO: gris claro en lugar de negro */
    border-top: 1px solid rgba(255, 106, 61, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .nav-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-gray);
    max-width: 400px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 106, 61, 0.2);
    color: var(--text-gray);
}

/* WordPress specific styles */
.wp-block-button__link {
    background: var(--gradient-primary) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-heavy) !important;
}

/* FIX: mostrar 24/7 completo */
.stat-247::after {
    content: "/7";
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 106, 61, 0.2);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .benefits-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .benefits-stats {
        gap: 1rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================================
   FORMULARIO AGENTICA SOLUTIONS - CONFIGURACI���N FINAL CPANEL
   ============================================================ */

/* 1. AUTOCOMPLETADO: Evita el fondo blanco de Chrome */
div.wpforms-container input:-webkit-autofill,
div.wpforms-container input:-webkit-autofill:hover, 
div.wpforms-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: #111213 !important;  /* CAMBIADO: texto negro */
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;  /* CAMBIADO: fondo blanco */
    transition: background-color 5000s ease-in-out 0s !important;
}

/* 2. TEXTO INTERNO: Color negro y visibilidad */
div.wpforms-container input, 
div.wpforms-container select, 
div.wpforms-container textarea,
div.wpforms-container ::placeholder {
    color: #111213 !important;               /* CAMBIADO: texto negro */
    font-size: 16px !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #111213 !important;  /* CAMBIADO: texto negro */
}

/* 3. CAMPOS EN REPOSO: Borde naranja suave */
div.wpforms-container input, 
div.wpforms-container select, 
div.wpforms-container textarea {
    background-color: #ffffff !important;    /* CAMBIADO: fondo blanco */
    border: 1.5px solid rgba(255, 140, 0, 0.4) !important;
    border-radius: 10px !important;
    padding: 16px 15px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
}

/* 4. CAMPOS ACTIVOS: Naranja intenso al hacer clic */
div.wpforms-container input:focus, 
div.wpforms-container textarea:focus, 
div.wpforms-container select:focus {
    border: 2px solid #ff8c00 !important; 
    outline: none !important;
    box-shadow: none !important;
}

/* 5. DESPLEGABLE: Altura y visibilidad del texto */
div.wpforms-container select {
    min-height: 55px !important;
    line-height: 1.5 !important;
    display: block !important;
    vertical-align: middle !important;
}

div.wpforms-container select option {
    background-color: #ffffff !important;    /* CAMBIADO: fondo blanco */
    color: #111213 !important;               /* CAMBIADO: texto negro */
}

/* 6. BOT���N DE ENV���O: Dise���o y alineaci���n Web */
div.wpforms-container .wpforms-submit-container { 
    text-align: left !important; 
}

div.wpforms-container .wpforms-submit {
    background: linear-gradient(90deg, #ff7745 0%, #ffab7d 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 40px !important;
    border-radius: 12px !important;
    width: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
}

/* AJUSTE M���VIL: Bot���n centrado y texto en una l���nea */
@media (max-width: 600px) {
    div.wpforms-container .wpforms-submit-container { 
        text-align: center !important; 
        padding: 0 !important;
    }
    
    div.wpforms-container .wpforms-submit { 
        width: 100% !important; 
        display: block !important;
        white-space: nowrap !important; 
        font-size: 15px !important; 
        min-height: 50px !important; 
    }
}

/* 7. MENSAJE DE ���XITO: Cuadro de confirmaci���n */
div.wpforms-confirmation-container-full {
    background-color: #ffffff !important;    /* CAMBIADO: fondo blanco */
    border: 1px solid #ff8c00 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    text-align: center !important;
    margin-top: 20px !important;
}

div.wpforms-confirmation-container-full p {
    color: #111213 !important;               /* CAMBIADO: texto negro */
    font-size: 18px !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

/* OCULTAR ETIQUETAS Y ERRORES NEGROS */
div.wpforms-container .wpforms-field-label, 
div.wpforms-container .wpforms-error { 
    display: none !important; 
}