*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
}
:root {
    --primary-color: #00BCD4; 
    --secondary-color: #4CAF50; 
    --form-background: rgba(255, 255, 255, 0.363); 
    --text-color-dark: #2c3e50; 
    --text-color-light: #fdfdfd; 
    --border-color: #e0e0e0;
    --placeholder-color: #95a5a6;
    --info-color: rgba(255, 255, 255, 0.7); 
    --error-color: #e74c3c; 
}

/* --- ESTILOS GLOBALES Y FONDO --- */

body {
    /* IMAGEN DE FONDO */
    background-image: url(descarga.jfif); 
    background-size: cover; 
    background-color: #2c3e5048;
    background-blend-mode: multiply;
    background-position: center center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-color-dark);
}

/* Ocultar el texto "Hola" */
body > p:first-of-type {
    display: none; 
}

/* --- ESTILO DEL CONTENEDOR (Transparencia) --- */
#myForm {
    background-color: var(--form-background);
    padding: 40px;
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); 
    width: 100%;
    max-width: 450px;
    transition: transform 0.3s ease;
    color: var(--text-color-dark); 
}


/* Estilo del Título */
#title {
    text-align: center;
    color: var(--text-color-dark); 
    margin-bottom: 35px;
    font-size: 2.5em;
    font-weight: 700; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}

/* Contenedor de cada Campo de Formulario */
.form-div {
    margin-bottom: 25px;
}

/* --- ESTILOS DE CAMPOS DE ENTRADA Y SELECT --- */

input[type="text"],
input[type="email"],
input[type="password"],
#countries,
input[type="tel"] {
    width: 100%;
    padding: 14px;
    margin-top: 5px;
    border-radius: 8px; 
    font-size: 16px;
    color: var(--text-color-dark); 
    background-color: #ffffff; 
}

/* Estilo del Placeholder */
input::placeholder {
    color: var(--placeholder-color);
    opacity: 0.8; 
}

/* Efecto de Enfoque */
input:focus, #countries:focus {
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.6); 
    background-color: #ffffff;
}

/* --- INFORMACIÓN (Semi-transparente) --- */
.information {
    font-size: 0.9em; 
    color: rgba(255, 255, 255, 0.822); 
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 8px; 
    font-style: italic;
    font-weight: 500; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); 
    display: none; 
}

 
.form-div:nth-child(4) {
    display: block; 
    margin-bottom: 25px; 
}

/* 2. Contenedor del teléfono para alineación */
.phone-group {
    display: flex; 
    align-items: stretch; 
    width: 100%;
    margin-top: 5px; 
}
/* 3. Código de teléfono */
#phone-code {
    flex-shrink: 0; 
    padding: 14px 15px; 
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background-color: #ecf0f1; 
    color: var(--text-color-dark); 
    font-size: 16px;
    display: flex;
    align-items: center; 
    justify-content: center;
    font-weight: bold;
}

/* 4. Input de teléfono */
input[type="tel"] {
    flex-grow: ;
    margin-top: 0; 
    border-radius: 0 8px 8px 0; 
    padding: 14px;
}


.form-div:nth-child(4) > .información {
    flex-basis: 100%; 
    margin-top: 8px;
}

/* --- ESTILO DEL BOTÓN --- */
#form-btn:disabled {
    background-color: #95a5a6; 
    cursor: not-allowed;
}

#form-btn {
    width: 100%;
    padding: 16px; 
    background-color: var(--secondary-color);
    color: var(--text-color-light); 
    border: none;
    border-radius: 8px;
    font-size: 1.2em; 
    font-weight: bold;
    letter-spacing: 1.5px; 
    cursor: pointer;
    margin-top: 40px; 
    transition: background-color 0.3s ease;
}


.correct {
    outline: 4px dashed #4CAF50;
}

.incorrect {
    outline: 4px solid #e74c3c;
}

.show-information {
    display: block;
    color:  black;;
}





/* --- ESTILOS PARA EL ENLACE DEL FOOTER --- */
footer {
    
    width: 100%; 
    max-width: 450px; 
    text-align: center;
    padding: 15px;
    
    background-color: rgba(0, 0, 0, 0); 
    color: var(--text-color-light); 
    font-size: 0.9em;
    font-weight: 400;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); 
    margin-top: 20px; 
    border-radius: 8px; 
}

/* --- ESTILOS PARA EL ENLACE DEL FOOTER (Se mantienen) --- */
footer a {
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff; 
    text-decoration: underline; 
}
