/* --- Variables de Color (Inspirado en Mandarin Oriental) --- */
/* Si tienes códigos de color específicos, cámbialos aquí.
  Estos están basados en la estética de la web que mencionaste.
*/
:root {
    --bg-color: #fdfcf7; /* Un blanco crema/beige muy claro */
    --text-color: #333333; /* Gris oscuro para texto */
    --header-color: #4a4a4a; /* Gris carbón para títulos */
    --accent-color: #b99d6b; /* Oro/bronce apagado */
    --accent-hover: #a38a5c; /* Oro más oscuro para hover */
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --border-color: #e0e0e0;
}
@font-face {
      font-family: 'AvenirNextLTPro-Regular.ttf'; /* A unique name for your font */
      src: url('font/AvenirNextLTPro-Regular.ttf') format('ttf'),
           url('font/to/AvenirNextLTPro-Regular.ttf') format('ttf'); /* Path to font files */
      font-weight: normal; /* Specify the font's weight (e.g., normal, bold, 100-900) */
      font-style: normal; /* Specify the font's style (normal, italic, oblique) */
      font-display: swap; /* Controls how the font renders while loading */
}

/* --- Estilos Globales y Tipografía --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'AvenirNextLTPro-Regular.ttf'; /* A unique name for your font */
      src: url('font/AvenirNextLTPro-Regular.ttf') format('ttf'),
           url('font/to/AvenirNextLTPro-Regular.ttf') format('ttf'); /* Path to font files */
      font-weight: normal; /* Specify the font's weight (e.g., normal, bold, 100-900) */
      font-style: normal; /* Specify the font's style (normal, italic, oblique) */
      font-display: swap; /* Controls how the font renders while loading */
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 300;
}

h1, h2, h3 {
    
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 1rem;
}
h1{
    font-family: 'MOExceptional-Regular.otf'; /* A unique name for your font */
      src: url('font/MOExceptional-Regular.otf') format('otf'),
           url('font/to/MOExceptional-Regular.otf') format('otf'); /* Path to font files */
      font-weight: bold; /* Specify the font's weight (e.g., normal, bold, 100-900) */
      font-style: normal; /* Specify the font's style (normal, italic, oblique) */
      font-display: swap; /* Controls how the font renders while loading */
}
h2,h3{
    font-family: 'FuturaPT-Medium.otf'; /* A unique name for your font */
      src: url('font/FuturaPT-Medium.otf') format('otf'),
           url('font/to/FuturaPT-Medium.otf') format('otf'); /* Path to font files */
      font-weight: bold; /* Specify the font's weight (e.g., normal, bold, 100-900) */
      font-style: normal; /* Specify the font's style (normal, italic, oblique) */
      font-display: swap; /* Controls how the font renders while loading */
}

p {
    margin-bottom: 1rem;
}

/* --- Encabezado (Hero Section) --- */
.hero {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    padding: 1rem 2rem 1rem 2rem; /* Padding ajustado */
}
button.language{
    background-color: #B7CDC2;
    color: black;
    font-weight: bold;
    font-size:0.8em;
    padding: 5px;
    position: absolute;
    top:20px;
    right:30px;
}
button.language a{
    color: black;
    font-weight: bold;
    text-decoration: none;
}
button.language a:hover{
    color: black;
    font-weight: bold;
    text-decoration: none;
}


/* --- ESTILOS AÑADIDOS PARA EL LOGO --- */
.logo-container {
    margin-bottom: 0rem;
}

.site-logo {
    max-width: 360px; /* Ajusta el tamaño de tu logo */
    height: auto;
    opacity: 0.9; /* Efecto sutil */
}
/* --- FIN DE ESTILOS DE LOGO --- */

.hero-content h1 {
    font-size: 2.8rem;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--header-color);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Contenedor Principal --- */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Contenedor de la Calculadora --- */
.calculator-container {
    max-width: 700px;
    width: 90%;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.calculator-container h2 {
    font-size: 2.2rem;
}

/* --- Formulario --- */
.carbon-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--header-color);
}

.form-group input[type="number"] {
    padding: 0.8rem 1rem;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(185, 157, 107, 0.3);
}

/* --- Botón CTA --- */
.cta-button {
    padding: 1rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Display de Resultado --- */
.result-display {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background-color: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.result-display p {
    font-size: 1.1rem;
    color: var(--header-color);
    margin-bottom: 0.5rem;
}

#carbonResult {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* --- Sección de Información Adicional --- */
.info-section {
    width: 100%;
    padding: 3rem 2rem;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.info-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-content h2 {
    font-size: 2.2rem;
}

/* --- Pie de Página --- */
.site-footer {
    background-color: var(--header-color);
    color: var(--light-gray);
    text-align: center;
    padding: 3rem 2rem;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--white);
    font-size: 2rem;
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--light-gray);
    opacity: 0.8;
    margin-bottom: 0;
}

/* --- Diseño Responsivo --- */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem 3rem 1rem;
    }
    
    .site-logo {
        max-width: 120px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .calculator-container {
        width: 95%;
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .calculator-container h2 {
        font-size: 1.8rem;
    }

    #carbonResult {
        font-size: 2rem;
    }

    .info-section {
        padding: 2.5rem 1rem;
    }
}