* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    /*background: linear-gradient(135deg, #000428 0%, #004e92 100%);*/
    background: url('../img/fondo.png') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0v20M0 10h20" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>') repeat;
    opacity: 0.1;
}

.nav {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: inline-flex;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.icoSecc_01 {
    width: 100px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #b0b0b0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Learn AI Section */
.why-section {
    padding: 80px 0;    
    background: #415390;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 50px;
    margin-bottom: 40px;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
}

.why-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.3s ease;
    height: 100%; /* Ocupa todo el alto disponible */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-card:hover {
    transform: translateY(-5px);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #00d4ff, #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.why-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
}

.highlight-text {
    text-align: center;
    font-size: 27px;
    color: #1652d5;
    margin-top: 80px;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.course-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-image {
    height: 200px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.3)"/></svg>') repeat;
}

.course-content {
    padding: 30px;
}

.course-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.course-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #999;
}

.course-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.course-btn:hover {
    transform: scale(1.05);
}

/* Instructor Section */
.instructor-section {
    background: url('../img/fondo.png') center center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.instructor-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #333;
}

.instructor-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #0066cc);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.instructor-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
}

.instructor-title {
    font-size: 1.2rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.instructor-bio {
    color: #ccc;
    line-height: 1.6;
    text-align: left;
}

/* Footer */
.footer {
    background: #000;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 20px;
}

.footer-text {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}


#contact-form {
    max-width: 400px;
    margin: 2em auto;    
    border-radius: 8px;
    color: #000;
}

.contacto-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0f2d47;               /* tono oscuro de fondo */
    padding: 2rem;
    box-sizing: border-box;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 0.5rem;
    width: 1.1em;
    height: 1.1em;
}

/* Botón de envío */
.btn-submit {
    margin-top: 20px;
    width: 100%;
    padding: 0.85rem;
    background: #1abc9c;                /* verde turquesa */
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}

.btn-submit:hover {
    background: #17a589;
    transform: translateY(-2px);
}




/* PANEL IZQUIERDO */
.info-panel {
    width: 50%;
    float: left;
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.contacto-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    background: #fff;
}

.info-panel__title {
    text-align: center;
    margin-bottom: 40px;
}

.phone-wrapper .iti {
    width: auto;            /* ajusta al contenido */
    max-width: 100%;
}

.phone-wrapper .iti__selected-flag {
    border: 1px solid #ccc; /* el contorno gris */
    border-radius: 4px 0 0 4px;
}

.phone-wrapper input {
    border-radius: 0 4px 4px 0;
    border: 1px solid #ccc;    
    height: 48px;
    padding-left: 12px;
}

.form-panel {  
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    width: 45%;
    float: right;
    background-color: #cecece;
}


/* 2) Labels más oscuros, texto limpio */
.form-panel label {
    color: #333;                                      /* gris oscuro para legibilidad */
    font-weight: 500;
    margin-bottom: 0.25rem;
    display: block;
}

/* 3) Inputs “light”, bordes suaves */
.form-panel input,
.form-panel select,
.form-panel textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #ccc;                           /* borde gris claro */
    border-radius: 4px;
    background: #f9f9f9;                               /* gris muy suave */
    color: #333;
    font-size: 1rem;
    box-sizing: border-box;
}

/* 4) On focus: resaltar bordes */
.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
    outline: none;
    border-color: #1abc9c;                            /* verde turquesa, o tu color principal */
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.15);
}

/* 5) Botón negro sobre blanco */
.form-panel .btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: #000;                                  /* fondo negro */
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background .2s, transform .1s;
}
.form-panel .btn-submit:hover {
    background: #222;
    transform: translateY(-1px);
}

/* 6) Feedback / errores */
#feedback {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #1652d5;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    min-height: 1.5em;
    transition: opacity 0.3s ease;
    white-space: pre-line;
    font-weight: bold;
}

.phone-wrapper .iti {
    width: 100% !important;
}


