/* --- Variables y Reseteo Básico --- */
:root {
    --primary-color: #1a73e8; /* Un azul profesional */
    --secondary-color: #ff6f00; /* Un naranja para acentos y CTAs */
    --dark-color: #202124;
    --medium-gray-color: #5f6368;
    --light-gray-color: #f1f3f4;
    --background-color: #ffffff;
    --main-font: 'Roboto', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    color: var(--dark-color);
    background-color: var(--background-color);
    line-height: 1.6;
    font-size: 16px;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* --- Cabecera y Navegación --- */
.main-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
}

.logo-text {
    font-family: var(--heading-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    text-transform: uppercase;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--dark-color);
    font-weight: 700;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Secciones Generales --- */
.section {
    padding: 60px 0;
}

.section-light {
    background-color: var(--light-gray-color);
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* --- Página de Inicio: Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/a_close_up_detailed_shot_of_a_high_quality.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #1565c0; /* Un poco más oscuro */
    color: #fff;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #ef6c00; /* Un poco más oscuro */
    color: #fff;
    transform: translateY(-3px);
}

/* --- Grid de Características/Servicios --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.feature-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Página de Contacto --- */
.contact-form {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--main-font);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-column p, .footer-column ul {
    color: #ccc;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--medium-gray-color);
    padding-top: 20px;
    color: #ccc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        justify-content: center;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* --- Banner de Cookies --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: #fff;
    z-index: 1001;
    padding: 15px 0;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: #fff;
}

#accept-cookies-btn {
    padding: 10px 20px;
    flex-shrink: 0;
}

/* --- Mensajes de Estado del Formulario --- */
.status-message {
    padding: 15px;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
