/* ESTILOS GENERALES QUE AFECTAN A TODA LA WEB */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.6;
    background-image: linear-gradient(rgba(26, 60, 94, 0.75), rgba(26, 60, 94, 0.75)), url('ai-automation-how-it-works-benefits-and-best-practies.jpg');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #f4f7f6;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* VARIABLES DE COLOR */
:root {
    --azul-oscuro: #1a3c5e;
    --verde-logo: #74c044;
    --gris-texto: #555;
}

/* BOTONES */
.btn-large {
    margin-top: 20px;
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--verde-logo);
    color: white;
    border-radius: 25px;
    font-weight: bold;
}

.btn-small {
    padding: 8px 20px;
    border: 2px solid var(--azul-oscuro);
    color: var(--azul-oscuro);
    border-radius: 20px;
}

/* CABECERA Y MENÚ */
header {
    background-color: rgb(167, 167, 167);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { display: flex; gap: 10px; }

/* Tamaño del logo */
.logo-img {
    height: 80px;
    width: auto;
    margin-right: 50px;
}

.logo-text h1 { color: var(--azul-oscuro); }
.logo-text p { color: var(--gris-texto); font-size: 12px; }

nav ul { display: flex; gap: 30px; }

/*PAGINA PRINCIPAL */
.hero { padding: 100px 0; }

.hero-content {
    display: flex;
    gap: 50px;
}

.hero-text h2 {
    font-size: 42px;
    color: var(--azul-oscuro);
}

.illustration-placeholder {
    width: 350px; height: 350px;
    background-color: #5bc830; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
}

/* SERVICIOS */
.services-grid {
    display: flex;
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.service-card:hover { 
    transform: translateY(-5px);
    border-bottom: 4px solid var(--verde-logo);
}

.page-header {
    background-color: var(--azul-oscuro);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    color: #d1e2f3;
    font-size: 18px;
}

.services-detail { padding: 60px 0; }

.service-row {
    display: flex;
    align-items: center; 
    gap: 40px; 
    margin-bottom: 60px;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text { flex: 1; }
.service-text h3 { color: var(--azul-oscuro); margin-bottom: 15px; font-size: 24px; }

.service-visual {
    flex: 1;
    font-size: 80px;
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* NOSOTROS */
.about-content { padding: 60px 0; }

.about-grid {
    display: flex;
    gap: 40px;
}

.about-box {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    border-top: 5px solid var(--verde-logo);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.about-box h3 { color: var(--azul-oscuro); margin-bottom: 20px; }
.about-box ul li { margin-bottom: 10px; color: var(--gris-texto); }

/* --- Estilos para la página de Contacto --- */
.contact-section { padding: 60px 0; }

.contact-wrapper {
    display: flex;
    gap: 50px;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form { flex: 2; }
.contact-info { flex: 1; }

.contact-wrapper h3 { color: var(--azul-oscuro); margin-bottom: 25px; }

/* Estilos de los campos del formulario */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--azul-oscuro);
}

.form-group input, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-logo);
    box-shadow: 0 0 5px rgba(116, 192, 68, 0.3);
}

.contact-info p { margin-bottom: 15px; font-size: 16px; }
/* FOOTER */

footer {
    background-color: var(--azul-oscuro);
    color: white;
    padding-top: 30px;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
}

.footer-col h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--verde-logo);
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

/* Linea decorativa debajo de títulos */
.footer-col h4::after { 
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--verde-logo);
    margin-top: 8px;
}

.footer-col p {
    color: #d1e2f3; 
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
    color: #d1e2f3; 
    font-size: 14px;
}

.footer-col ul li a, 
.social-links a {
    color: #d1e2f3;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Efecto al pasar el ratón por encima de un enlace del footer */
.footer-col ul li a:hover, 
.social-links a:hover {
    color: var(--verde-logo);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

/* Franja inferior de Copyright */
.footer-bottom {
    background-color: #112840; 
    text-align: center;
    font-size: 13px;
    color: #8da9c4;
}
.hero-text h2, 
.services h3, 
.service-text h3 {
    color: white !important;
}
/* Cajas blancas de texto */

.service-card,
.about-box,
.contact-wrapper {
    background-color: white;
    color: #333;
}

.service-card h4,
.service-card p,
.about-box h3,
.about-box p,
.about-box ul li,
.contact-wrapper h3,
.contact-info p,
.form-group label {
    color: #333; 
}

/* Botín Mi Perfil*/
.btn-small {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--verde-logo);
    color: white !important;
    border: 2px solid var(--verde-logo);
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: white;
    color: var(--verde-logo) !important;
    border-color: white;
}