/* Variables de Diseño */
:root {
    --primary: #005F73;      /* Azul Petróleo Algoria */
    --primary-dark: #004c5c;
    --secondary: #455A64;    /* Gris Antracita */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 95, 115, 0.15);
}

/* Reset General */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navegación --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CAMBIA ESTA LÍNEA: */
.nav-logo { 
    height: 90px; /* Antes era 45px. Prueba 75px o incluso 90px */
    width: auto;  /* Esto asegura que no se deforme */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

/* --- Botones --- */
.btn-primary {
    background-color: var(--primary);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 95, 115, 0.3);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 23px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white !important;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('../imagenes/hero-bg-newy.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; }

/* --- Secciones Generales --- */
.section { padding: 80px 0; }
.section-light { background-color: var(--bg-gray); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* --- Cards Servicios --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 { margin-bottom: 15px; color: var(--secondary); }

/* --- Imagen + Texto --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.image-block { position: relative; }
.image-block img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}
.feature-list li {
    margin-bottom: 10px;
    font-weight: 600;
}
.feature-list i {
    color: var(--primary);
    margin-right: 10px;
}

/* --- Formulario de Contacto --- */
.section-dark {
    background-color: var(--secondary);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h2 { color: white; margin-bottom: 20px; font-size: 2rem; }
.contact-info p { margin-bottom: 30px; opacity: 0.9; }

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    color: var(--text-dark);
}

.form-group { margin-bottom: 20px; }
.grid-2-small { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border 0.3s;
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover { background-color: var(--primary-dark); }

/* --- Footer --- */
footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* --- Animaciones --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .grid-2, .contact-wrapper, .grid-2-small { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Simplificado para esta demo */
}


/* --- Estilos para Algoria Labs (Herramientas) --- */
.tool-card {
    position: relative;
    padding-bottom: 25px; /* Espacio extra para el botón */
    display: flex;
    flex-direction: column;
}

.tool-card p {
    flex-grow: 1; /* Empuja el botón hacia abajo si el texto es corto */
    margin-bottom: 25px;
}

.tool-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(39, 174, 96, 0.3);
}

.btn-tool {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
}

.btn-tool:hover {
    color: #003642;
    transform: translateX(5px);
}