/* Nuevo bloque de fuente para Roboto Flex */
@font-face {
    font-family: 'Roboto Flex';
    src: url('fonts/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-style: normal;
}

/* General body styles */
body {
    font-family: 'Roboto Flex', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* Header styles */
.header {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.header-content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

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

.logo img {
    height: 150px;
}

.domain-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.sale-text {
    color: red;
    font-weight: bold;
    font-size: 0.9em;
    margin-left: 5px;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav ul li a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
}

/* Hero section */
.hero {
    background: url('../imgs/hero_imagen.jpg') no-repeat center center/cover;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

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

/* Three-column layout for main content */
.main-container {
    display: grid;
    grid-template-columns: 0.8fr 2fr 0.8fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    grid-column: 2 / 3;
    max-width: 800px;
    margin: 0 auto;
}

.publicidad-izquierda, .publicidad-derecha {
    /*background-color: #e2e2e2;*/
	background-color: #f4f4f4;
    padding: 20px;
    text-align: center;
}

/* Domain highlight section */
.domain-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.domain-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.domain-info {
    text-align: center;
    max-width: 800px;
}

.domain-info h2 {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 15px;
}

.domain-info .featured-domain {
    font-size: 3em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.domain-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}
/*
.domain-info button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.domain-info button:hover {
    background-color: #218838;
}
*/
.domain-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

a.nonelink {
	text-decoration: none; /* Quita el subrayado del enlace */
	color: white;
	font-size: 1.5em;
}

/* NUEVA CLASE GENÉRICA PARA EL BOTÓN VERDE */
.button {
    /* Propiedades de visualización para que parezca un botón */
    display: inline-block;
    text-decoration: none; /* Quita el subrayado del enlace */
    text-align: center;
    
    /* Estilos del botón verde original */
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #218838;
}

/* Other Domains Grid Section */
.other-domains {
    padding: 50px 20px;
    text-align: center;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.domain-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 15px;
}

.domain-item:hover {
    transform: translateY(-5px);
}

.domain-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    width: 200px;
    height: 200px;
}

.domain-item p {
    margin-top: 10px;
    font-weight: bold;
    color: #007bff;
}

.domain-item a {
    text-decoration: none;
    color: inherit;
}

/* Contact section */
.contact {
    padding: 50px 20px;
    text-align: center;
    background-color: #e2e2e2;
}

.contact h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.contact p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact form input, .contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact form button:hover {
    background-color: #0056b3;
}

/* Cookie banner styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 750px;
    background-color: #e6e6e6;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-top: 5px solid #0056b3;
    border-radius: 10px;
}

.cookie-content {
    color: #333;
    margin-bottom: 15px;
}

.cookie-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9em;
}

.cookie-content p:first-child {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-group {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.cookie-button {
    border: 1px solid #0056b3;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.blue-button {
    background-color: #0056b3;
    color: white;
}

.blue-button:hover {
    background-color: #004494;
}

.gray-button {
    background-color: white;
    color: #0056b3;
}

.gray-button:hover {
    background-color: #f0f0f0;
}

.cookie-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cookie-links a {
    color: #0056b3;
    font-size: 0.8em;
    text-decoration: underline;
}

/* NUEVO: Estilos para el botón de configuración de cookies flotante */
.cookie-settings-button-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Footer styles */
.footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content-container,
    .main-container {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .header-content-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .sale-text {
        display: none;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav ul li {
        margin: 5px 0;
    }

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

    .hero p {
        font-size: 1em;
    }

    .domain-info h2 {
        font-size: 2em;
    }

    .domain-info .featured-domain {
        font-size: 2.5em;
    }

    .cookie-banner {
        position: fixed;
        bottom: 10px;
        right: 10px;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }

    .cookie-content {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .main-content {
        grid-column: auto;
    }

    .publicidad-izquierda, .publicidad-derecha {
        display: none;
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* AJUSTE COOKIE-SETTINGS.PHP */
/* Fuente global */
/*@font-face {
    font-family: 'Roboto Flex';
    src: url('fonts/RobotoFlex-VariableFont_GRAD,XOPQ,XTRA,YOPQ,YTAS,YTDE,YTFI,YTLC,YTUC,opsz,slnt,wdth,wght.ttf') format('truetype');
    font-weight: 100 1000;
    font-stretch: 25% 151%;
    font-style: normal;
}

body {
    font-family: 'Roboto Flex', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}
*/
/* Encabezado de la página de cookies */
.header-cookies {
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.logo-cookies img {
    height: 150px;
}

.nav-cookies ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-cookies ul li a {
    text-decoration: none;
    color: #0056b3;
    font-weight: bold;
    margin-left: 20px;
}

/* Contenido principal */
.container-cookies {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.main-content-cookies h1 {
    font-size: 2.5em; /* Aumenta el tamaño del título */
    color: #0056b3;
    text-align: center;
}

.main-content-cookies p {
    font-size: 1.2em; /* Aumenta el tamaño del texto */
    text-align: center;
    margin-bottom: 20px;
}

/* Formulario de cookies */
.cookie-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-settings label {
    font-size: 1.1em;
}

.cookie-settings input[type="checkbox"] {
    margin-right: 10px;
}

.cookie-settings input[type="checkbox"][disabled] {
    cursor: not-allowed;
}

.cookie-settings button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: center; /* Centra el botón */
}

.cookie-settings button:hover {
    background-color: #218838;
}

/* Mensaje de confirmación */
#saveConfirmation {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-cookies {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-cookies ul {
        flex-direction: column;
        margin-top: 10px;
    }
    .nav-cookies ul li a {
        margin: 5px 0;
    }
}
/* END AJUSTE COOKIE-SETTINGS.PHP */

/* EMAIL CONTACT SECTION */
/* Estilos sugeridos para style.css o el CSS principal de index.html */

/* Estilos sugeridos para style.css */

.contact-email {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 500px; /* Limita el ancho para centrarlo mejor */
    margin-left: auto;
    margin-right: auto;
}

.email-link {
    color: #007bff; 
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    /* Ya no es necesario 'word-break: break-all;' ya que hemos forzado el salto */
}

.domain-info button {
    background-color: #007bff; /* Color azul */
    color: white;
    padding: 10px 20px;
    /* ... otras propiedades ... */
}


/* ========================================= */
/* ESTILOS PARA EL SELECTOR DE IDIOMA (BANDERAS/TEXTO) */
/* ========================================= */

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px; /* Separación del menú principal */
}

.language-selector a {
    text-decoration: none;
    color: #333; /* Color oscuro */
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
    border: 1px solid transparent;
}

.language-selector a.active {
    background-color: #007bff; /* Azul para el idioma activo */
    color: white;
    border: 1px solid #007bff;
}

.language-selector a:not(.active):hover {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
}